Skip to content

Commit

Permalink
Merge pull request #64 from codecademy-engineering/lindsay-service-1.…
Browse files Browse the repository at this point in the history
…0.21

add envFromSecret
  • Loading branch information
lindsaylandry authored Aug 1, 2022
2 parents 25e011a + 57decba commit dc8fb83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: service
description: A generic k8s service chart
type: application
version: 1.0.20
version: 1.0.21
maintainers:
- email: [email protected]
name: devops
5 changes: 5 additions & 0 deletions charts/service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ spec:
command:
{{ toYaml .Values.image.command | indent 12 }}
{{- end }}
{{- if .Values.envFromSecret }}
envFrom:
- secretRef:
name: {{ .Values.envFromSecret }}
{{- end }}
env:
{{- range $key, $value := .Values.envKeyValue }}
- name: {{ $key }}
Expand Down

0 comments on commit dc8fb83

Please sign in to comment.