Skip to content

Commit

Permalink
fix workflows.enabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-yn committed Dec 11, 2023
1 parent 3250f73 commit d7b97a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/retool/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: retool
description: A Helm chart for Kubernetes
type: application
version: 6.0.10
version: 6.0.11
maintainers:
- name: Retool Engineering
email: engineering+helm@retool.com
Expand Down
7 changes: 6 additions & 1 deletion charts/retool/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ Usage: (include "retool.workflows.enabled" .)
*/}}
{{- define "retool.workflows.enabled" -}}
{{- $output := "" -}}
{{- if or (eq (toString (default "" .Values.workflows.enabled)) "true") (eq (toString (default "" .Values.workflows.enabled)) "false") -}}
{{- if or
(eq (toString (default "" .Values.workflows.enabled)) "true")
(eq .Values.workflows.enabled true)
(eq (toString (default "" .Values.workflows.enabled)) "false")
(eq .Values.workflows.enabled false)
-}}
{{- if eq .Values.workflows.enabled true -}}
{{- $output = "1" -}}
{{- else -}}
Expand Down

0 comments on commit d7b97a0

Please sign in to comment.