diff --git a/.kontinuous/patches/secrets.js b/.kontinuous/patches/secrets.js index 067449b3..8a23907d 100644 --- a/.kontinuous/patches/secrets.js +++ b/.kontinuous/patches/secrets.js @@ -16,7 +16,7 @@ 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 }}' }; @@ -24,6 +24,11 @@ export {{ $key }}={{ $value }} \ ...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; diff --git a/.kontinuous/values.yaml b/.kontinuous/values.yaml index 70dce64f..ccdf3352 100644 --- a/.kontinuous/values.yaml +++ b/.kontinuous/values.yaml @@ -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: