Skip to content

Commit

Permalink
[fix] code executor image tag reference for internal tags
Browse files Browse the repository at this point in the history
  • Loading branch information
avimoondra committed Mar 20, 2024
1 parent 4774c21 commit 3e1d100
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions charts/retool/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ Set Code Executor enabled
Usage: (include "retool.codeExecutor.enabled" .)
*/}}
{{- define "retool.codeExecutor.enabled" -}}
{{- $codeExecutorVersion := (include "retool.codeExecutor.image.tag" .) -}}
{{- $output := "" -}}
{{- if or
(eq (toString .Values.codeExecutor.enabled) "true")
Expand All @@ -189,11 +188,11 @@ Usage: (include "retool.codeExecutor.enabled" .)
{{- else -}}
{{- $output = "" -}}
{{- end -}}
{{- else if empty $codeExecutorVersion -}}
{{- else if empty (include "retool.codeExecutor.image.tag" .) -}}
{{- $output = "" -}}
{{- else if (or (contains "stable" $codeExecutorVersion) (contains "edge" $codeExecutorVersion)) -}}
{{- else if (or (contains "stable" (include "retool.codeExecutor.image.tag" .)) (contains "edge" (include "retool.codeExecutor.image.tag" .))) -}}
{{- $output = "1" -}}
{{- else if semverCompare ">= 3.20.15" $codeExecutorVersion -}}
{{- else if semverCompare ">= 3.20.15" (include "retool.codeExecutor.image.tag" .) -}}
{{- $output = "1" -}}
{{- else -}}
{{- $output = "" -}}
Expand Down

0 comments on commit 3e1d100

Please sign in to comment.