Skip to content

Commit dd3f765

Browse files
committed
fix: Always allow customresourcedefinitions list/watch
Required for the startup condition regardless of whether crd maintenance is enabled
1 parent 6a6b292 commit dd3f765

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deploy/helm/secret-operator/templates/roles.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ metadata:
4545
rules:
4646
# Required for maintaining the CRDs (including the conversion webhook configuration) and
4747
# for the startup condition check.
48-
{{- if .Values.maintenance.customResourceDefinitions.maintain }}
4948
- apiGroups: [apiextensions.k8s.io]
5049
resources: [customresourcedefinitions]
5150
verbs:
51+
{{- if .Values.maintenance.customResourceDefinitions.maintain }}
5252
# Required to maintain the CRD (e.g. conversion webhook certificate).
5353
- create
5454
- patch
55+
{{- end }}
5556
# Required for startup condition
5657
- list
5758
- watch
58-
{{- end }}
5959
# Secrets are read and written by multiple backends (autoTLS CA storage, Kerberos keytab,
6060
# k8sSearch, cert-manager). The autoTLS backend uses replace (HTTP PUT) for CA entries,
6161
# requiring the update verb in addition to SSA verbs. The truststore controller applies

0 commit comments

Comments
 (0)