From 90945f6610f67838db26b31360aea1f71595e650 Mon Sep 17 00:00:00 2001 From: Thomas Eckert Date: Wed, 20 Oct 2021 16:05:08 -0400 Subject: [PATCH] Use .Release.Namespace in job definition --- .../templates/gossip-encryption-autogenerate-job.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/charts/consul/templates/gossip-encryption-autogenerate-job.yaml b/charts/consul/templates/gossip-encryption-autogenerate-job.yaml index 29d11cd5ac..3811f36703 100644 --- a/charts/consul/templates/gossip-encryption-autogenerate-job.yaml +++ b/charts/consul/templates/gossip-encryption-autogenerate-job.yaml @@ -39,17 +39,12 @@ spec: containers: - name: gossip-encryption-autogen image: "{{ .Values.global.imageK8S }}" - env: - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace command: - "/bin/sh" - "-ec" - | consul-k8s-control-plane gossip-encryption-autogenerate \ - -namespace="${NAMESPACE}" \ + -namespace={{ .Release.Namespace }} \ -secret-name={{ template "consul.fullname" . }}-gossip-encryption-key \ -secret-key="key" \ -log-level={{ .Values.global.logLevel }} \