Fix permissions to use leases from coordination.k8s.io
Change-Id: Ie71314eac8ede16e392d6d989803e79bce966d98
diff --git a/k8s/01-all-in-one-v1alpha2.yaml b/k8s/01-all-in-one-v1alpha2.yaml
index f5ac146..8913d1f 100644
--- a/k8s/01-all-in-one-v1alpha2.yaml
+++ b/k8s/01-all-in-one-v1alpha2.yaml
@@ -71,6 +71,7 @@
- list
- create
- patch
+ - get
- apiGroups:
- apps
resourceNames:
@@ -125,15 +126,8 @@
resources:
- leases
verbs:
- - create
- - apiGroups:
- - coordination.k8s.io
- resourceNames:
- - jenkins-operator
- resources:
- - leases
- verbs:
- get
+ - create
- update
---
kind: RoleBinding