Skip to content

Commit

Permalink
Grant kiali role list permissions for mutating webhooks (#279)
Browse files Browse the repository at this point in the history
This is necessary to read tags in the cluster.
  • Loading branch information
nrfox committed Sep 9, 2024
1 parent 4de308c commit 7a6d5b7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kiali-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -312,4 +312,11 @@ rules:
- tokenreviews
verbs:
- create
- apiGroups: ["admissionregistration.k8s.io"]
resources:
- mutatingwebhookconfigurations
verbs:
- get
- list
- watch
...
7 changes: 7 additions & 0 deletions kiali-server/templates/role-viewer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,12 @@ rules:
- {{ include "kiali-server.fullname" . }}-{{ .Release.Namespace }}
verbs:
- get
- apiGroups: ["admissionregistration.k8s.io"]
resources:
- mutatingwebhookconfigurations
verbs:
- get
- list
- watch
...
{{- end -}}
7 changes: 7 additions & 0 deletions kiali-server/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,12 @@ rules:
- {{ include "kiali-server.fullname" . }}-{{ .Release.Namespace }}
verbs:
- get
- apiGroups: ["admissionregistration.k8s.io"]
resources:
- mutatingwebhookconfigurations
verbs:
- get
- list
- watch
...
{{- end -}}

0 comments on commit 7a6d5b7

Please sign in to comment.