mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
a3efcc80ac
* add permissions for Kyverno deployment update Signed-off-by: Jim Bugwadia <jim@nirmata.com> * remove quotes Signed-off-by: Jim Bugwadia <jim@nirmata.com>
30 lines
470 B
YAML
30 lines
470 B
YAML
---
|
|
# Dynamic management of leader election leases
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: kyverno:leaderelection
|
|
labels:
|
|
app: kyverno
|
|
rules:
|
|
- apiGroups:
|
|
- coordination.k8s.io
|
|
resources:
|
|
- leases
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- patch
|
|
- update
|
|
# Allow update of Kyverno deployment annotations
|
|
- apiGroups:
|
|
- apps
|
|
resources:
|
|
- deployments
|
|
verbs:
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|