Skip to content

Commit

Permalink
fix: remove empty check as helpers do not return an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
dlahn committed May 14, 2024
1 parent 8f88757 commit 94fc56a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions helm/charts/keto/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
env:
{{- if not (empty ( include "keto.dsn" . )) }}
{{- if not ( include "keto.dsn" . ) }}
- name: DSN
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -179,7 +179,7 @@ spec:
resources:
{{- toYaml $resources | nindent 12 }}
env:
{{- if not (empty ( include "keto.dsn" . )) }}
{{- if not ( include "keto.dsn" . ) }}
- name: DSN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion helm/charts/keto/templates/job-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:
{{- toYaml . | nindent 10 }}
{{- end }}
env:
{{- if not (empty ( include "keto.dsn" . )) }}
{{- if not ( include "keto.dsn" . ) }}
- name: DSN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion helm/charts/kratos/templates/cleanup-cron-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
- --config
- /etc/config/kratos.yaml
env:
{{- if not (empty ( include "kratos.dsn" . )) }}
{{- if not ( include "kratos.dsn" . ) }}
- name: DSN
valueFrom:
secretKeyRef:
Expand Down
4 changes: 2 additions & 2 deletions helm/charts/kratos/templates/deployment-kratos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
env:
{{- if not (empty ( include "kratos.dsn" . )) }}
{{- if not ( include "kratos.dsn" . ) }}
- name: DSN
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -148,7 +148,7 @@ spec:
{{- end }}
{{- end }}
env:
{{- if not (empty ( include "kratos.dsn" . )) }}
{{- if not ( include "kratos.dsn" . ) }}
- name: DSN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion helm/charts/kratos/templates/job-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
args: ["migrate", "sql", "-e", "--yes", "--config", "/etc/config/kratos.yaml"]
{{- end }}
env:
{{- if not (empty ( include "kratos.dsn" . )) }}
{{- if not ( include "kratos.dsn" . ) }}
- name: DSN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion helm/charts/kratos/templates/statefulset-mail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ spec:
value: {{ .Values.statefulSet.log.format }}
- name: LOG_LEVEL
value: {{ .Values.statefulSet.log.level }}
{{- if not (empty ( include "kratos.dsn" . )) }}
{{- if not ( include "kratos.dsn" . ) }}
- name: DSN
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 94fc56a

Please sign in to comment.