feat(helm): allow to override the init container image

This commit is contained in:
Patrick Jahns 2022-11-16 21:53:28 +01:00 committed by Maximilien Richer
parent fd03b184b3
commit d20e8c9256
Signed by: maximilien
GPG key ID: 04FD5063D6D43365
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -77,6 +77,11 @@ image:
tag: ""
pullPolicy: IfNotPresent
initImage:
repository: busybox
tag: 1.28
pullPolicy: IfNotPresent
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""