From 222674432b7ffdc3cdbf2aceb9f9020c4fcdd9b6 Mon Sep 17 00:00:00 2001 From: Benjamin von Mossner Date: Thu, 25 Jul 2024 11:42:13 +0200 Subject: This commit adds an environment dict to garage helm chart. Using it, env variables can be set into the garage container environment, useful to set eg. GARAGE_ADMIN_TOKEN or GARAGE_METRICS_TOKEN --- script/helm/garage/templates/workload.yaml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'script/helm/garage/templates') diff --git a/script/helm/garage/templates/workload.yaml b/script/helm/garage/templates/workload.yaml index aba9202b..635e70e0 100644 --- a/script/helm/garage/templates/workload.yaml +++ b/script/helm/garage/templates/workload.yaml @@ -64,6 +64,10 @@ spec: name: web-api - containerPort: 3903 name: admin + {{- with .Values.environment }} + env: + {{- toYaml . | nindent 12 }} + {{- end }} volumeMounts: - name: meta mountPath: /mnt/meta -- cgit v1.2.3