Skip to content

Commit 42948b6

Browse files
misba7iromli
andauthored
fix(kc-scheduler): add missing customCommand in gluu-aio (#1877)
Co-authored-by: Isman Firmansyah <[email protected]>
1 parent ddfcba2 commit 42948b6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

charts/gluu-all-in-one/templates/cronjobs.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,19 @@ spec:
136136
{{- end }}
137137
containers:
138138
- 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") }}
140140
command:
141+
{{- if index .Values "kc-scheduler" "customCommand" }}
142+
{{- toYaml (index .Values "kc-scheduler" "customCommand") | nindent 18 }}
143+
{{- else }}
141144
- /bin/sh
142145
- -c
143146
- |
144147
{{- with (index .Values "kc-scheduler" "customScripts") }}
145148
{{- toYaml . | replace "- " "" | nindent 20}}
146149
{{- end }}
147150
/app/bin/entrypoint.sh
151+
{{- end}}
148152
{{- end}}
149153
image: "{{ index .Values "kc-scheduler" "image" "repository" }}:{{ index .Values "kc-scheduler" "image" "tag" }}"
150154
env:

charts/gluu-all-in-one/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -838,5 +838,7 @@ kc-scheduler:
838838
# - /tmp/custom.sh
839839
# - /tmp/custom2.sh
840840
customScripts: []
841+
# -- Add custom job's command. If passed, it will override the default conditional command.
842+
customCommand: []
841843
# -- Boolean flag to enable/disable the kc-scheduler cronjob chart.
842844
enabled: false

0 commit comments

Comments
 (0)