Skip to content

Commit

Permalink
more robust tpl function
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi Moondra authored and Avi Moondra committed Sep 15, 2023
1 parent d6e8f5e commit f48fa0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions charts/retool/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ Set Workflows enabled
{{- define "retool.workflows.enabled" -}}
{{- if or (eq .Values.workflows.enabled true) (eq .Values.workflows.enabled false) -}}
{{- .Values.workflows.enabled | default false }}
{{- else if empty .Values.image.tag }}
{{- false }}
{{- else if eq .Values.image.tag "latest" }}
{{- true }}
{{- else }}
{{- semverCompare ">= 3.6.11" .Values.image.tag }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/retool/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ data:
postgresql-password: {{ .Values.config.postgresql.password | default "" | b64enc | quote }}
{{ end }}

{{ if and ((include "retool.workflows.enabled" .) | include "strToBool" ) .Values.workflows.temporal.sslKey }}
{{ if .Values.workflows.temporal.sslKey }}
temporal-tls-key: {{ .Values.workflows.temporal.sslKey | default "" | b64enc | quote }}
{{ end }}

Expand Down

0 comments on commit f48fa0a

Please sign in to comment.