diff --git a/charts/consul/templates/client-daemonset.yaml b/charts/consul/templates/client-daemonset.yaml index 1623319c3c..dbe1734be3 100644 --- a/charts/consul/templates/client-daemonset.yaml +++ b/charts/consul/templates/client-daemonset.yaml @@ -217,7 +217,7 @@ spec: {{- end }} {{- end }} {{- end }} - {{- if (and .Values.global.enterpriseLicense.secretName .Values.global.enterpriseLicense.secretKey .Values.global.enterpriseLicense.enableLicenseAutoload (not .Values.global.acls.manageSystemACLs))}} + {{- if (and .Values.global.enterpriseLicense.secretName .Values.global.enterpriseLicense.secretKey .Values.global.enterpriseLicense.enableLicenseAutoload (not .Values.global.acls.manageSystemACLs)) }} - name: CONSUL_LICENSE_PATH {{- if .Values.global.secretsBackend.vault.enabled }} value: /vault/secrets/enterpriselicense.txt @@ -243,11 +243,9 @@ spec: - | CONSUL_FULLNAME="{{template "consul.fullname" . }}" - {{- if .Values.global.secretsBackend.vault.enabled }} - {{- if .Values.global.gossipEncryption.secretName }} + {{- if and .Values.global.secretsBackend.vault.enabled .Values.global.gossipEncryption.secretName }} GOSSIP_KEY=`cat /vault/secrets/gossip.txt` {{- end }} - {{- end }} {{- if (and .Values.dns.enabled .Values.dns.enableRedirection) }} {{ template "consul.recursors" }} {{- end }} diff --git a/charts/consul/templates/server-statefulset.yaml b/charts/consul/templates/server-statefulset.yaml index 77d3583165..82ce26cd98 100644 --- a/charts/consul/templates/server-statefulset.yaml +++ b/charts/consul/templates/server-statefulset.yaml @@ -227,7 +227,8 @@ spec: value: /vault/secrets/enterpriselicense.txt {{- else }} value: /consul/license/{{ .Values.global.enterpriseLicense.secretKey }} - {{- end }} {{- end }} + {{- end }} + {{- end }} {{- if (and .Values.global.acls.replicationToken.secretName .Values.global.acls.replicationToken.secretKey) }} - name: ACL_REPLICATION_TOKEN valueFrom: