fix(helm): skip temporal init job when reusing postgresql main user
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:
@@ -1,5 +1,6 @@
|
|||||||
{{- if .Values.temporal.enabled }}
|
{{- if .Values.temporal.enabled }}
|
||||||
{{- if .Values.postgresql.enabled }}
|
{{- if .Values.postgresql.enabled }}
|
||||||
|
{{- if ne .Values.temporal.postgresql.user .Values.postgresql.auth.username }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
@@ -71,3 +72,4 @@ spec:
|
|||||||
key: POSTGRES_PWD
|
key: POSTGRES_PWD
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user