Browse Source

fix: only create cert-controller RBAC resources if cert-controller creation itself is enabled

Previously both `certController.create` and `certController.rbac.create` needed to be set to `false` in order to prevent the cert-controller RBAC resources from being created.
Alfred Krohmer 4 years ago
parent
commit
74c06dc2e4

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

@@ -1,4 +1,4 @@
-{{- if .Values.certController.rbac.create -}}
+{{- if and .Values.certController.create .Values.certController.rbac.create -}}
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata: