diff options
author | maximilien <me@mricher.fr> | 2023-01-27 10:51:04 +0000 |
---|---|---|
committer | maximilien <me@mricher.fr> | 2023-01-27 10:51:04 +0000 |
commit | df30f3df4b2b6cb67c4e37117fb30d6f61cfefc5 (patch) | |
tree | 2e9291b5f91abf355e92668fd3ed4bbbb5896698 /script/helm/garage/templates/workload.yaml | |
parent | f2c256cac4e599335d592dd580011cf15f278a51 (diff) | |
parent | 50bce43f25574d168f015f31fb7f8a69dafac072 (diff) | |
download | garage-df30f3df4b2b6cb67c4e37117fb30d6f61cfefc5.tar.gz garage-df30f3df4b2b6cb67c4e37117fb30d6f61cfefc5.zip |
Merge pull request 'helm chart improvements' (#425) from patrickjahns/garage:helm-improvements into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/425
Diffstat (limited to 'script/helm/garage/templates/workload.yaml')
-rw-r--r-- | script/helm/garage/templates/workload.yaml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/script/helm/garage/templates/workload.yaml b/script/helm/garage/templates/workload.yaml index 057a9858..340c0054 100644 --- a/script/helm/garage/templates/workload.yaml +++ b/script/helm/garage/templates/workload.yaml @@ -14,8 +14,10 @@ spec: {{- end }} template: metadata: - {{- with .Values.podAnnotations }} + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} labels: @@ -31,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 @@ -39,6 +42,8 @@ spec: secretKeyRef: name: {{ include "garage.rpcSecretName" . }} key: rpcSecret + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} volumeMounts: - name: configmap mountPath: /mnt/garage.toml @@ -56,6 +61,8 @@ spec: name: s3-api - containerPort: 3902 name: web-api + - containerPort: 3903 + name: admin volumeMounts: - name: meta mountPath: /mnt/meta |