Skip to content

Commit

Permalink
Add missing RBAC for ServiceMetadataWatchers (#89)
Browse files Browse the repository at this point in the history
* Add missing RBAC for ServiceMetadataWatchers

* Add extraRBAC to helm values

* Add serviceMetadata to configmap template

---------

Co-authored-by: aalexand <[email protected]>
  • Loading branch information
aalexandru and aalexand authored Nov 1, 2023
1 parent 181dfa7 commit cd373f2
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/cluster-registry-client/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ maintainers:
- name: radu-catalina
email: [email protected]

version: 0.1.8
appVersion: v1.4.2
version: 0.2.0
appVersion: v1.5.1
37 changes: 37 additions & 0 deletions charts/cluster-registry-client/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,40 @@ rules:
- get
- patch
- update
- apiGroups:
- registry.ethos.adobe.com
resources:
- servicemetadatawatchers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- registry.ethos.adobe.com
resources:
- servicemetadatawatchers/finalizers
verbs:
- update
- apiGroups:
- registry.ethos.adobe.com
resources:
- servicemetadatawatchers/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- watch
- list
{{- with .Values.extraRBAC }}
{{- toYaml . | nindent 2 }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/cluster-registry-client/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,16 @@ data:
{{- else }}
alertMap: []
{{- end }}
{{- if .Values.clusterRegistryClient.serviceMetadata }}
serviceMetadata:
serviceIdAnnotation: {{ .Values.clusterRegistryClient.serviceIdAnnotation | default "adobe.serviceid" }}
{{- if .Values.clusterRegistryClient.serviceMetadata.watchedGVKs }}
watchedGVKs:
{{- range $_, $gvk := .Values.clusterRegistryClient.serviceMetadata.watchedGVKs }}
- group: {{ $gvk.group }}
version: {{ $gvk.version }}
kind: {{ $gvk.kind }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit cd373f2

Please sign in to comment.