Skip to content

Commit

Permalink
Add ClusterRole for elector which Naiserator can create bindings to
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenlj committed Dec 8, 2023
1 parent 23c97b8 commit 09d122c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions charts/elector/templates/cluster_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "elector.fullname" . }}
labels:
{{- include "elector.labels" . | nindent 4 }}
rules:
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- create
- list
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch

0 comments on commit 09d122c

Please sign in to comment.