From 5049e566ab2f1dbab07de5693e53a163baa4d77e Mon Sep 17 00:00:00 2001 From: Eric Wyles <23637493+ericwyles@users.noreply.github.com> Date: Tue, 9 Jul 2024 09:36:00 -0500 Subject: [PATCH] feat: allow envFrom for specifying environment variables from configmap or secret --- chart/templates/deployment.yaml | 4 ++++ chart/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 796a3bbf..6504c5ed 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -30,6 +30,10 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} env: {{- toYaml .Values.deployment.env | nindent 12 }} + {{- with .Values.deployment.envFrom }} + envFrom: + {{- toYaml . | nindent 12 }} + {{- end }} ports: - name: graphql containerPort: 8082 diff --git a/chart/values.yaml b/chart/values.yaml index 6ba8eaa3..71971711 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -59,6 +59,9 @@ deployment: # - name: ARCHIVISTA_BLOB_STORE_BUCKET_NAME # value: attestations + ## Allows the specification of a configmap or secret to set all key-value pairs as environment variables for Archivista + envFrom: [] + service: type: ClusterIP port: 8082