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 7ed0732 commit 651312a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helm/_backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,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 Down Expand Up @@ -58,6 +58,10 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ $deploymentTag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
['sh', '-c']
args:
['. /vault/secrets/secrets.env && dotnet StrDss.Api.dll']
env:
- name: DEPLOYMENT_TAG
value: {{ $deploymentTag | quote }}
Expand Down

0 comments on commit 651312a

Please sign in to comment.