fix(helm): skip temporal init job when reusing postgresql main user
Helm Chart CI/CD / lint-test (push) Has been cancelled
Helm Chart CI/CD / publish (push) Has been cancelled

When temporal.postgresql.user == postgresql.auth.username, the user
already exists with CREATEDB — temporalio/auto-setup handles database
creation itself. The init job only runs for a distinct dedicated user.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-16 18:38:05 +02:00
parent 6b0e1ff5f3
commit 98231d5eaf
@@ -1,5 +1,6 @@
{{- if .Values.temporal.enabled }}
{{- if .Values.postgresql.enabled }}
{{- if ne .Values.temporal.postgresql.user .Values.postgresql.auth.username }}
apiVersion: batch/v1
kind: Job
metadata:
@@ -71,3 +72,4 @@ spec:
key: POSTGRES_PWD
{{- end }}
{{- end }}
{{- end }}