Skip to content

Commit 618e1e2

Browse files
authored
Merge pull request #1917
Hotfix crdhook, add imagePullSecrets
2 parents c8c2f8a + 8495379 commit 618e1e2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

deploy/helm/clickhouse-operator/templates/hooks/crd-install-job.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ spec:
2424
spec:
2525
serviceAccountName: {{ include "altinity-clickhouse-operator.fullname" . }}-crd-install
2626
restartPolicy: OnFailure
27+
{{- with .Values.crdHook.imagePullSecrets }}
28+
imagePullSecrets:
29+
{{- toYaml . | nindent 8 }}
30+
{{- end }}
2731
{{- with .Values.crdHook.nodeSelector }}
2832
nodeSelector:
2933
{{- toYaml . | nindent 8 }}

deploy/helm/clickhouse-operator/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ crdHook:
1818
tag: "latest"
1919
# crdHook.image.pullPolicy -- image pull policy for CRD installation job
2020
pullPolicy: IfNotPresent
21+
# crdHook.imagePullSecrets -- image pull secrets for CRD installation job
22+
# possible value format `[{"name":"your-secret-name"}]`,
23+
# check `kubectl explain pod.spec.imagePullSecrets` for details
24+
imagePullSecrets: []
2125
# crdHook.resources -- resource limits and requests for CRD installation job
2226
resources: {}
2327
# limits:

0 commit comments

Comments
 (0)