Skip to content

Commit

Permalink
feat(github-guard): add new crd GithubAccountLink (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
onuryilmaz authored Jan 22, 2025
1 parent 116f23f commit ed75d10
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 4 deletions.
4 changes: 2 additions & 2 deletions github-guard/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ apiVersion: v2
name: github-guard
description: A Helm chart for Kubernetes
type: application
version: 0.5.0
appVersion: "0.5.0"
version: 1.0.0
appVersion: "1.0.0"
65 changes: 65 additions & 0 deletions github-guard/charts/crds/githubaccountlink-crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors
# SPDX-License-Identifier: Apache-2.0

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
name: githubaccountlinks.githubguard.sap
spec:
group: githubguard.sap
names:
kind: GithubAccountLink
listKind: GithubAccountLinkList
plural: githubaccountlinks
singular: githubaccountlink
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .spec.github
name: Github
type: string
- jsonPath: .spec.userID
name: User
type: string
- jsonPath: .spec.githubUserID
name: Github ID
type: string
name: v1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
properties:
github:
type: string
githubUserID:
type: string
userID:
type: string
type: object
status:
type: object
type: object
served: true
storage: true
subresources:
status: {}
8 changes: 8 additions & 0 deletions github-guard/charts/templates/manager-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ rules:
- get
- list
- watch
- apiGroups:
- githubguard.sap
resources:
- githubaccountlinks
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down
4 changes: 2 additions & 2 deletions github-guard/plugindefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ kind: PluginDefinition
metadata:
name: github-guard
spec:
version: "0.5.0"
version: "1.0.0"
displayName: Github Guard
description: Manages Github teams, team memberships and repository & team assignments
docMarkDownUrl: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/github-guard/README.md
icon: https://raw.githubusercontent.com/cloudoperators/greenhouse-extensions/main/github-guard/img/logo.png
helmChart:
name: github-guard
repository: oci://ghcr.io/cloudoperators/greenhouse-extensions/charts
version: 0.5.0
version: 1.0.0

0 comments on commit ed75d10

Please sign in to comment.