diff --git a/helm/charts/hydra/templates/deployment.yaml b/helm/charts/hydra/templates/deployment.yaml index a8f2bb24f..63667add4 100644 --- a/helm/charts/hydra/templates/deployment.yaml +++ b/helm/charts/hydra/templates/deployment.yaml @@ -119,7 +119,7 @@ spec: - name: URLS_SELF_ISSUER value: {{ $issuer | quote }} {{- end }} - {{- if not (empty ( include "hydra.dsn" . )) }} + {{- if empty ( include "hydra.dsn" . ) }} - name: DSN valueFrom: secretKeyRef: diff --git a/helm/charts/hydra/templates/job-migration.yaml b/helm/charts/hydra/templates/job-migration.yaml index 79283df12..27bf9dc0c 100644 --- a/helm/charts/hydra/templates/job-migration.yaml +++ b/helm/charts/hydra/templates/job-migration.yaml @@ -57,7 +57,7 @@ spec: args: ["migrate", "sql", "-e", "--yes", "--config", "/etc/config/hydra.yaml"] {{- end }} env: - {{- if not (empty ( include "hydra.dsn" . )) }} + {{- if empty ( include "hydra.dsn" . ) }} - name: DSN valueFrom: secretKeyRef: