fix(argocd-image-updater): add permission when createClusterRoles is false
Signed-off-by: yu-croco <yu.croco@gmail.com>
This commit is contained in:
parent
7cce2bc701
commit
c5a0eea9c1
1 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,14 @@ rules:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
|
{{- if not .Values.createClusterRoles }}
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- events
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
|
{{- end }}
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
|
|
Loading…
Reference in a new issue