vino/config/rbac/leader_election_role.yaml
Kostiantyn Kalynovskyi 916e6fda6f Lifecycle of the daemonset
Unit tests will be added next patchset

Change-Id: I04c85cf99169abf2cbce0a2187995f51289b35cf
2021-01-07 14:30:07 -06:00

44 lines
560 B
YAML

# permissions to do leader election.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: leader-election-role
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- configmaps/status
verbs:
- get
- update
- patch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete