Skip to content

Commit

Permalink
feat: allow envFrom for specifying environment variables from configm…
Browse files Browse the repository at this point in the history
…ap or secret (#326)

Signed-off-by: Eric Wyles <[email protected]>
  • Loading branch information
ericwyles authored Jul 9, 2024
1 parent 7579ee2 commit ea313cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea313cd

Please sign in to comment.