File tree 3 files changed +18
-0
lines changed
helm-charts/charts/kube-starrocks
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ kind: Job
4
4
metadata :
5
5
name : starrocks-initpwd
6
6
namespace : {{ template "starrockscluster.namespace" . }}
7
+ {{- if .Values.initPassword.annotations }}
8
+ annotations :
9
+ {{- toYaml .Values.initPassword.annotations | nindent 4 }}
10
+ {{- end }}
7
11
spec :
8
12
template :
9
13
spec :
17
21
{{- end }}
18
22
containers :
19
23
- name : {{ template "starrockscluster.name" . }}-initpwd
24
+ {{- if .Values.initPassword.image }}
25
+ image : {{ .Values.initPassword.image }}
26
+ {{- else }}
20
27
image : {{ .Values.starrocksFESpec.image.repository }}:{{ include "starrockscluster.fe.image.tag" . }}
28
+ {{- end }}
21
29
imagePullPolicy : IfNotPresent
22
30
command :
23
31
- /bin/bash
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ initPassword:
17
17
password : " "
18
18
# The secret name that contains password, the key of the secret is "password", and you should create it first.
19
19
passwordSecret : " "
20
+ # The image of the initPassword job, if it is not set, the FE image will be used.
21
+ # see https://github.com/StarRocks/starrocks-kubernetes-operator/issues/453 for why we need to set the image.
22
+ image : " "
23
+ # The annotations for the initPassword job.
24
+ annotations : {}
20
25
21
26
# TimeZone is used to set the environment variable TZ for pod, with Asia/Shanghai as the default.
22
27
timeZone : Asia/Shanghai
Original file line number Diff line number Diff line change @@ -110,6 +110,11 @@ starrocks:
110
110
password : " "
111
111
# The secret name that contains password, the key of the secret is "password", and you should create it first.
112
112
passwordSecret : " "
113
+ # The image of the initPassword job, if it is not set, the FE image will be used.
114
+ # see https://github.com/StarRocks/starrocks-kubernetes-operator/issues/453 for why we need to set the image.
115
+ image : " "
116
+ # The annotations for the initPassword job.
117
+ annotations : {}
113
118
114
119
# TimeZone is used to set the environment variable TZ for pod, with Asia/Shanghai as the default.
115
120
timeZone : Asia/Shanghai
You can’t perform that action at this time.
0 commit comments