aboutsummaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authormaximilien <me@mricher.fr>2024-08-06 21:45:35 +0000
committermaximilien <me@mricher.fr>2024-08-06 21:45:35 +0000
commita5ed1161c64173c3bd29df6f5c768d771c3af8c5 (patch)
tree195eeae1dcd7b9c002406b8250e1e19a32eb7cd6 /script
parent070a8ad110cb75dd2df7ddc9ecbb5c814291ac89 (diff)
parent222674432b7ffdc3cdbf2aceb9f9020c4fcdd9b6 (diff)
downloadgarage-a5ed1161c64173c3bd29df6f5c768d771c3af8c5.tar.gz
garage-a5ed1161c64173c3bd29df6f5c768d771c3af8c5.zip
Merge pull request 'Add environment variable dict to helm chart.' (#843) from Benjamin/garage:main into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/843 Reviewed-by: maximilien <me@mricher.fr>
Diffstat (limited to 'script')
-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