Skip to content

Commit

Permalink
Merge pull request #240 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: vault
  • Loading branch information
ychung-mot authored Apr 29, 2024
2 parents 4c5e514 + 651312a commit 986d09f
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 986d09f

Please sign in to comment.