diff --git a/helm/charts/kratos/templates/deployment-kratos.yaml b/helm/charts/kratos/templates/deployment-kratos.yaml index f327c4c7f..ac2df276e 100644 --- a/helm/charts/kratos/templates/deployment-kratos.yaml +++ b/helm/charts/kratos/templates/deployment-kratos.yaml @@ -83,7 +83,7 @@ spec: name: {{ include "kratos.secretname" . }} key: dsn {{- if $migrationExtraEnv }} - {{- toYaml .Values.deployment.extraEnv | nindent 12 }} + {{- toYaml $migrationExtraEnv | nindent 12 }} {{- end }} {{- end }} volumes: diff --git a/helm/charts/kratos/templates/job-migration.yaml b/helm/charts/kratos/templates/job-migration.yaml index ab42a9abb..a6cdb26cb 100644 --- a/helm/charts/kratos/templates/job-migration.yaml +++ b/helm/charts/kratos/templates/job-migration.yaml @@ -66,7 +66,7 @@ spec: name: {{ include "kratos.secretname" . }} key: dsn {{- if $migrationExtraEnv }} - {{- toYaml .Values.deployment.extraEnv | nindent 10 }} + {{- toYaml $migrationExtraEnv | nindent 10 }} {{- end }} {{- if .Values.job.lifecycle }} lifecycle: