aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin von Mossner <github@vonmossner.de>2024-07-25 11:42:13 +0200
committerBenjamin von Mossner <github@vonmossner.de>2024-07-25 11:42:13 +0200
commit222674432b7ffdc3cdbf2aceb9f9020c4fcdd9b6 (patch)
tree195eeae1dcd7b9c002406b8250e1e19a32eb7cd6
parent070a8ad110cb75dd2df7ddc9ecbb5c814291ac89 (diff)
downloadgarage-222674432b7ffdc3cdbf2aceb9f9020c4fcdd9b6.tar.gz
garage-222674432b7ffdc3cdbf2aceb9f9020c4fcdd9b6.zip
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
-rw-r--r--script/helm/garage/templates/workload.yaml4
-rw-r--r--script/helm/garage/values.yaml2
2 files changed, 6 insertions, 0 deletions
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
diff --git a/script/helm/garage/values.yaml b/script/helm/garage/values.yaml
index 63164b9b..5c381f16 100644
--- a/script/helm/garage/values.yaml
+++ b/script/helm/garage/values.yaml
@@ -216,6 +216,8 @@ tolerations: []
affinity: {}
+environment: {}
+
monitoring:
metrics:
# If true, a service for monitoring is created with a prometheus.io/scrape annotation