File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -136,15 +136,19 @@ spec:
136
136
{{- end }}
137
137
containers :
138
138
- name : {{ include "flex-all-in-one.name" . }}-kc-scheduler
139
- {{- if (index .Values "kc-scheduler" "customScripts") }}
139
+ {{- if or (index .Values "kc-scheduler" "customScripts") (index .Values "kc-scheduler" "customCommand ") }}
140
140
command :
141
+ {{- if index .Values "kc-scheduler" "customCommand" }}
142
+ {{- toYaml (index .Values "kc-scheduler" "customCommand") | nindent 18 }}
143
+ {{- else }}
141
144
- /bin/sh
142
145
- -c
143
146
- |
144
147
{{- with (index .Values "kc-scheduler" "customScripts") }}
145
148
{{- toYaml . | replace "- " "" | nindent 20}}
146
149
{{- end }}
147
150
/app/bin/entrypoint.sh
151
+ {{- end}}
148
152
{{- end}}
149
153
image : " {{ index .Values " kc-scheduler" "image" "repository" }}:{{ index .Values "kc-scheduler" "image" "tag" }}"
150
154
env :
Original file line number Diff line number Diff line change @@ -838,5 +838,7 @@ kc-scheduler:
838
838
# - /tmp/custom.sh
839
839
# - /tmp/custom2.sh
840
840
customScripts : []
841
+ # -- Add custom job's command. If passed, it will override the default conditional command.
842
+ customCommand : []
841
843
# -- Boolean flag to enable/disable the kc-scheduler cronjob chart.
842
844
enabled : false
You can’t perform that action at this time.
0 commit comments