Browse Source

Merge pull request #955 from goto-opensource/fix/cert-controller-rbac-conditional

fix: only create cert-controller RBAC resources if cert-controller creation itself is enabled
paul-the-alien[bot] 4 years ago
parent
commit
89304512e2

+ 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
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 kind: ClusterRole
 metadata:
 metadata: