diff options
author | Patrick Jahns <kontakt@patrickjahns.de> | 2022-11-16 21:53:28 +0100 |
---|---|---|
committer | Maximilien Richer <me@mricher.fr> | 2023-01-27 00:08:32 +0100 |
commit | d20e8c92564843e8c9abdf573db5ce7f6c58f482 (patch) | |
tree | 83f14eb04acd1e94f4b1b3059bba4071f82a9359 /script/helm/garage | |
parent | fd03b184b33337e3f1de06a5cadd3c5bcc0a3536 (diff) | |
download | garage-d20e8c92564843e8c9abdf573db5ce7f6c58f482.tar.gz garage-d20e8c92564843e8c9abdf573db5ce7f6c58f482.zip |
feat(helm): allow to override the init container image
Diffstat (limited to 'script/helm/garage')
-rw-r--r-- | script/helm/garage/templates/workload.yaml | 3 | ||||
-rw-r--r-- | script/helm/garage/values.yaml | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/script/helm/garage/templates/workload.yaml b/script/helm/garage/templates/workload.yaml index 718f7bea..b0303869 100644 --- a/script/helm/garage/templates/workload.yaml +++ b/script/helm/garage/templates/workload.yaml @@ -33,7 +33,8 @@ spec: initContainers: # Copies garage.toml from configmap to temporary etc volume and replaces RPC secret placeholder - name: {{ .Chart.Name }}-init - image: busybox:1.28 + image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}" + imagePullPolicy: {{ .Values.initImage.pullPolicy }} command: ["sh", "-c", "sed \"s/__RPC_SECRET_REPLACE__/$RPC_SECRET/\" /mnt/garage.toml > /mnt/etc/garage.toml"] env: - name: RPC_SECRET diff --git a/script/helm/garage/values.yaml b/script/helm/garage/values.yaml index 701a5680..5900033b 100644 --- a/script/helm/garage/values.yaml +++ b/script/helm/garage/values.yaml @@ -77,6 +77,11 @@ image: tag: "" pullPolicy: IfNotPresent +initImage: + repository: busybox + tag: 1.28 + pullPolicy: IfNotPresent + imagePullSecrets: [] nameOverride: "" fullnameOverride: "" |