fix(helm): correct secret name references and add migration env var

- Secret resource now named with -secrets suffix to match all template refs
- Add CREDENTIAL_ENCRYPTION_KEY to migration init container (VPN migration needs it)
- Fix postgres secretKeyRef to use -secrets suffix

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-17 18:54:47 -05:00
parent 4d3eadd1df
commit aef94329f4
3 changed files with 8 additions and 3 deletions

View File

@@ -56,6 +56,11 @@ spec:
configMapKeyRef:
name: {{ include "tod.fullname" . }}
key: SYNC_DATABASE_URL
- name: CREDENTIAL_ENCRYPTION_KEY
valueFrom:
secretKeyRef:
name: {{ include "tod.fullname" . }}-secrets
key: CREDENTIAL_ENCRYPTION_KEY
securityContext:
runAsUser: 1001
runAsNonRoot: true