Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
feat: raw env variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
malo-octo committed Dec 22, 2023
1 parent 26867bb commit 6e802bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .kontinuous/patches/secrets.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,19 @@ module.exports = (manifests) => {
"vault.hashicorp.com/agent-inject-template-dev": '\
{{- with secret "kv/dev/nextauth_secret" -}} \
{{- range $key, $value := .Data.data }} \
export {{ $key }}={{ $value }} \
export {{ upper $key }}={{ $value }} \
{{- end }} \
{{- end }}'
};
manifest.spec.template.spec = {
...manifest.spec.template.spec,
serviceAccountName: "vault"
};
manifest.spec.template.spec.containers[0] = {
...manifest.spec.template.spec.containers[0],
command: ['sh', '-c'],
args: ['source /vault/secrets/dev && yarn start']
}
}
}
return manifests;
Expand Down
3 changes: 1 addition & 2 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ app:
ingress:
annotations:
nginx.ingress.kubernetes.io/proxy-buffer-size: "128k"
# args:
# ['sh', '-c', 'source /vault/secrets/dev && node start']


jobs:
runs:
Expand Down

0 comments on commit 6e802bd

Please sign in to comment.