Skip to content

Commit

Permalink
add true can-i check to make sure the operator has the permissions it…
Browse files Browse the repository at this point in the history
… needs for clusterrole/binding creation

part of fix for: kiali/kiali#3241
  • Loading branch information
jmazzitelli committed May 3, 2021
1 parent 87f89a0 commit 4b69e22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kiali-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ rules:
- patch
- update
- watch
- apiGroups: ["authorization.k8s.io"]
resources:
- selfsubjectaccessreview
verbs:
- list
- apiGroups: ["rbac.authorization.k8s.io"]
resources:
{{- if or (and (.Values.cr.create) (has "**" .Values.cr.spec.deployment.accessible_namespaces)) (.Values.clusterRoleCreator) }}
Expand Down

0 comments on commit 4b69e22

Please sign in to comment.