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 (#70)

part of fix for: kiali/kiali#3241
  • Loading branch information
jmazzitelli authored Aug 3, 2021
1 parent ac441ec commit 70dfa7d
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:
- selfsubjectaccessreviews
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 70dfa7d

Please sign in to comment.