fix: best practices suggest this to set to true (#12809)

The order of the specification is important here, k8s will take the last value as truth. Push down to be sure schema update is done by migration job
This commit is contained in:
Marvin Huetter 2025-07-30 00:40:12 +02:00 committed by GitHub
parent 52f097eb9d
commit d23a6e3ea4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,8 +47,6 @@ spec:
- name: DATABASE_URL
value: postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ .Release.Name }}-postgresql/{{ .Values.postgresql.auth.database }}
{{- end }}
- name: DISABLE_SCHEMA_UPDATE
value: "false" # always run the migration from the Helm PreSync hook, override the value set
{{- if .Values.envVars }}
{{- range $key, $val := .Values.envVars }}
- name: {{ $key }}
@ -58,6 +56,8 @@ spec:
{{- with .Values.extraEnvVars }}
{{- toYaml . | nindent 12 }}
{{- end }}
- name: DISABLE_SCHEMA_UPDATE
value: "false" # always run the migration from the Helm PreSync hook, override the value set
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}