This is an automated email from the ASF dual-hosted git repository.
ethanfeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new 9b83587dd [CELEBORN-1603] parameterize init container image
9b83587dd is described below
commit 9b83587dd58f7d905f86730498d275e350c2b0b3
Author: Arsen Gumin <[email protected]>
AuthorDate: Fri Sep 20 15:07:22 2024 +0800
[CELEBORN-1603] parameterize init container image
### What changes were proposed in this pull request?
### Why are the changes needed?
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
Closes #2745 from aagumin/feature/helm-chart-init-container-registry.
Authored-by: Arsen Gumin <[email protected]>
Signed-off-by: mingji <[email protected]>
---
charts/celeborn/templates/master/statefulset.yaml | 2 +-
charts/celeborn/templates/worker/statefulset.yaml | 2 +-
charts/celeborn/values.yaml | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/charts/celeborn/templates/master/statefulset.yaml
b/charts/celeborn/templates/master/statefulset.yaml
index 01e670588..d917dc82a 100644
--- a/charts/celeborn/templates/master/statefulset.yaml
+++ b/charts/celeborn/templates/master/statefulset.yaml
@@ -43,7 +43,7 @@ spec:
{{- $dirs := .Values.volumes.master }}
{{- if eq "hostPath" (index $dirs 0).type }}
- name: chown-{{ $.Release.Name }}-master-volume
- image: alpine:3.18
+ image: {{ .Values.image.initContainerImage }}
{{- with .Values.image.pullPolicy }}
imagePullPolicy: {{ . }}
{{- end }}
diff --git a/charts/celeborn/templates/worker/statefulset.yaml
b/charts/celeborn/templates/worker/statefulset.yaml
index c65edd295..5313b21eb 100644
--- a/charts/celeborn/templates/worker/statefulset.yaml
+++ b/charts/celeborn/templates/worker/statefulset.yaml
@@ -43,7 +43,7 @@ spec:
{{- $dirs := .Values.volumes.worker }}
{{- if eq "hostPath" (index $dirs 0).type }}
- name: chown-{{ $.Release.Name }}-worker-volume
- image: alpine:3.18
+ image: {{ .Values.image.initContainerImage }}
{{- with .Values.image.pullPolicy }}
imagePullPolicy: {{ . }}
{{- end }}
diff --git a/charts/celeborn/values.yaml b/charts/celeborn/values.yaml
index 87cb35e27..f94f80cdd 100644
--- a/charts/celeborn/values.yaml
+++ b/charts/celeborn/values.yaml
@@ -33,6 +33,8 @@ image:
tag: 0.1.1-6badd20
# -- Image pull policy
pullPolicy: Always
+ # -- Image name for init containter. (your-private-repo/alpine:3.18)
+ initContainerImage: alpine:3.18
# -- Image pull secrets for private image registry
imagePullSecrets: []