Skip to content

Commit

Permalink
chore(github-guard): 0.5.0 to manage users with LDAP group membership (
Browse files Browse the repository at this point in the history
  • Loading branch information
onuryilmaz authored Dec 23, 2024
1 parent a9906db commit 5fa57cd
Show file tree
Hide file tree
Showing 5 changed files with 108 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.4.0
appVersion: "0.4.0"
version: 0.5.0
appVersion: "0.5.0"
7 changes: 7 additions & 0 deletions github-guard/charts/crds/githubteam-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ spec:
distributionListID:
type: string
type: object
ldapGroup:
properties:
group:
type: string
ldapGroupProvider:
type: string
type: object
type: object
github:
type: string
Expand Down
73 changes: 73 additions & 0 deletions github-guard/charts/crds/ldapgroupprovider-crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 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: ldapgroupproviders.githubguard.sap
spec:
group: githubguard.sap
names:
kind: LDAPGroupProvider
listKind: LDAPGroupProviderList
plural: ldapgroupproviders
singular: ldapgroupprovider
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.state
name: Status
type: string
- jsonPath: .status.timestamp
name: Last Change
type: date
name: v1
schema:
openAPIV3Schema:
description: LDAPGroupProvider is the Schema for the ldapgroupproviders API
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:
description: LDAPGroupProviderSpec defines the desired state of LDAPGroupProvider
properties:
baseDN:
type: string
host:
type: string
secret:
type: string
type: object
status:
description: LDAPGroupProviderStatus defines the observed state of LDAPGroupProvider
properties:
error:
type: string
state:
type: string
timestamp:
format: date-time
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
24 changes: 24 additions & 0 deletions github-guard/charts/templates/manager-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,30 @@ rules:
- get
- patch
- update
- apiGroups:
- githubguard.sap
resources:
- ldapgroupproviders
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- githubguard.sap
resources:
- ldapgroupproviders/finalizers
verbs:
- update
- apiGroups:
- githubguard.sap
resources:
- ldapgroupproviders/status
verbs:
- get
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
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.4.0"
version: "0.5.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.4.0
version: 0.5.0

0 comments on commit 5fa57cd

Please sign in to comment.