Skip to content

Commit

Permalink
more consistent name for job runner templated func
Browse files Browse the repository at this point in the history
  • Loading branch information
avimoondra committed Feb 1, 2024
1 parent 67d32ee commit c302af0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions charts/retool/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,13 @@ Set postgresql user

{{/*
Set Jobs Runner enabled
Usage: (include "retool.jobsRunner.enabled" .)
Usage: (include "retool.jobRunner.enabled" .)
*/}}
{{- define "retool.jobsRunner.enabled" -}}
{{- define "retool.jobRunner.enabled" -}}
{{- $output := "" -}}
{{- if or (gt (int (toString (.Values.replicaCount))) 1) (default false .Values.jobRunner.enabled) }}
{{- $output = "1" -}}
{{- end -}}
# {{ printf "retool.jobsRunner.enabled result: %s" $output | quote }}
{{- $output -}}
{{- end -}}

Expand Down
2 changes: 1 addition & 1 deletion charts/retool/templates/deployment_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
env:
- name: NODE_ENV
value: production
{{- if include "retool.jobsRunner.enabled" . }}
{{- if include "retool.jobRunner.enabled" . }}
{{ if $.Values.dbconnector.java.enabled }}
- name: SERVICE_TYPE
value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR,JAVA_DBCONNECTOR
Expand Down
2 changes: 1 addition & 1 deletion charts/retool/templates/deployment_jobs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if include "retool.jobsRunner.enabled" . }}
{{- if include "retool.jobRunner.enabled" . }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down

0 comments on commit c302af0

Please sign in to comment.