Skip to content

Commit

Permalink
grant leader election permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Feb 2, 2022
1 parent 716e0aa commit c7186b7
Showing 1 changed file with 33 additions and 19 deletions.
52 changes: 33 additions & 19 deletions helm/templates/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ metadata:
labels:
{{ include "k8s-event-logger-operator.labels" . | nindent 4 }}
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
Expand All @@ -26,13 +14,6 @@ rules:
- get
- update
- patch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- apps
resources:
Expand Down Expand Up @@ -67,4 +48,37 @@ rules:
- '*'
verbs:
- '*'
# start leader election
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
# end leader election
{{- end -}}

0 comments on commit c7186b7

Please sign in to comment.