Skip to content

Commit

Permalink
Merge pull request #72 from vladimir-babichev/main
Browse files Browse the repository at this point in the history
[common] Added support for 'envFrom' values section as defined in values.yaml
  • Loading branch information
nicholaswilde authored Mar 1, 2022
2 parents 6a69568 + 90b4513 commit becc076
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v2
name: common
description: Function library for nicholaswilde's helm charts
type: library
version: 0.1.13
version: 0.1.14
keywords:
- nicholaswilde
- common
Expand Down
5 changes: 4 additions & 1 deletion charts/common/templates/lib/controller/_container.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ The main container included in the controller.
securityContext:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if or .Values.env .Values.secret }}
{{- if or .Values.env .Values.secret .Values.envFrom }}
envFrom:
{{- with .Values.envFrom }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.env }}
- configMapRef:
name: {{ include "common.names.fullname" . }}
Expand Down

0 comments on commit becc076

Please sign in to comment.