Skip to content

Commit e2cbbdc

Browse files
committed
feat(helm): Gate create, patch permissions for CRDs
1 parent c216e2e commit e2cbbdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ metadata:
4545
rules:
4646
# Required to maintain the CRD. The operator needs to do this, as it needs to enter e.g. it's
4747
# generated certificate in the conversion webhook.
48+
{{- if .Values.maintenance.customResourceDefinitions.maintain }}
4849
- apiGroups: [apiextensions.k8s.io]
4950
resources: [customresourcedefinitions]
5051
verbs:
5152
- create
5253
- patch
54+
{{- end }}
5355
- apiGroups:
5456
- ""
5557
resources:

0 commit comments

Comments
 (0)