Skip to content

Commit

Permalink
chore: vault
Browse files Browse the repository at this point in the history
  • Loading branch information
ychung-mot committed Apr 29, 2024
1 parent aeaf340 commit 0937c4e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions helm/_backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ spec:
{{- include "app.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- $podAnnotations := merge (.Values.podAnnotations | default dict) (.Values.global.vault.podAnnotations | default dict) -}}
{{- with $podAnnotations }}
Expand All @@ -28,7 +27,7 @@ spec:
vault.hashicorp.com/role: {{ .Values.global.vault.role }}
vault.hashicorp.com/agent-inject-secret-secrets.env: {{ .Values.global.vault.role }}/{{ .Values.global.vault.subPath }}
vault.hashicorp.com/agent-inject-template-secrets.env: |
{{- with secret "{{ .Values.global.vault.role }}/{{ .Values.global.vault.subPath }}" -}}
{{`{{ with secret "`}}{{ .Values.global.vault.role }}/{{ .Values.global.vault.subPath }}{{`" -}}
export BCEID_OSID="{{ .Data.data.BCEID_OSID }}"
export CHES_ID="{{ .Data.data.CHES_ID }}"
export CHES_SECRET="{{ .Data.data.CHES_SECRET }}"
Expand All @@ -41,7 +40,7 @@ spec:
export GEOCODER_CLIENT_ID="{{ .Data.data.GEOCODER_CLIENT_ID }}"
export SA_PASS="{{ .Data.data.SA_PASS }}"
export SA_USER="{{ .Data.data.SA_USER }}"
{{- end }}
{{- end }}`}}
labels:
{{- include "app.selectorLabels" . | nindent 8 }}
spec:
Expand Down Expand Up @@ -108,4 +107,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}

0 comments on commit 0937c4e

Please sign in to comment.