Skip to content

Commit becc076

Browse files
Merge pull request #72 from vladimir-babichev/main
[common] Added support for 'envFrom' values section as defined in values.yaml
2 parents 6a69568 + 90b4513 commit becc076

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

charts/common/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v2
33
name: common
44
description: Function library for nicholaswilde's helm charts
55
type: library
6-
version: 0.1.13
6+
version: 0.1.14
77
keywords:
88
- nicholaswilde
99
- common

charts/common/templates/lib/controller/_container.tpl

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ The main container included in the controller.
1515
securityContext:
1616
{{- toYaml . | nindent 4 }}
1717
{{- end }}
18-
{{- if or .Values.env .Values.secret }}
18+
{{- if or .Values.env .Values.secret .Values.envFrom }}
1919
envFrom:
20+
{{- with .Values.envFrom }}
21+
{{- toYaml . | nindent 4 }}
22+
{{- end }}
2023
{{- if .Values.env }}
2124
- configMapRef:
2225
name: {{ include "common.names.fullname" . }}

0 commit comments

Comments
 (0)