Skip to content

Commit

Permalink
Use .Release.Namespace in job definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Eckert committed Oct 20, 2021
1 parent 4b23efe commit 90945f6
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} \
Expand Down

0 comments on commit 90945f6

Please sign in to comment.