Browse Source

fix: certController misses leases RBAC to enable leader election (#2258)

Signed-off-by: Moritz Johner <Moritz.Johner@form3.tech>
Moritz Johner 3 years ago
parent
commit
6c4bbb2e9c

+ 9 - 0
deploy/charts/external-secrets/templates/cert-controller-rbac.yaml

@@ -51,6 +51,15 @@ rules:
     - "watch"
     - "update"
     - "patch"
+  - apiGroups:
+    - "coordination.k8s.io"
+    resources:
+    - "leases"
+    verbs:
+    - "get"
+    - "create"
+    - "update"
+    - "patch"
 ---
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding