Skip to content

Commit c94fcf5

Browse files
committed
cainjector was missing roles for the election, webhook could not watch secrets
Signed-off-by: Maël Valais <[email protected]>
1 parent 1e24f4d commit c94fcf5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

schema.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ properties:
253253
rules:
254254
- apiGroups: [""]
255255
resources: [secrets]
256-
verbs: [get, list, update, patch, create]
256+
verbs: [get, list, watch, update, patch, create]
257257

258258
cert-manager.cainjector.serviceAccount.name:
259259
type: string
@@ -263,6 +263,22 @@ properties:
263263
serviceAccount:
264264
description: Service account used by cert-manager CA Injector Deployment
265265
roles:
266+
- type: Role
267+
rulesType: CUSTOM
268+
rules:
269+
# Leader election roles.
270+
- apiGroups: [""]
271+
resources: [configmaps]
272+
verbs: [get, list, watch, create, update, patch, delete]
273+
- apiGroups: [""]
274+
resources: [configmaps/status]
275+
verbs: [get, update, patch]
276+
- apiGroups: [""]
277+
resources: [events]
278+
verbs: [create]
279+
- apiGroups: [coordination.k8s.io]
280+
resources: [leases]
281+
verbs: [create, get, list, update]
266282
- type: ClusterRole
267283
rulesType: CUSTOM
268284
rules:

0 commit comments

Comments
 (0)