22Renders main container in pod template.
33Called from pod template.
44Usage:
5- {{ include " cf-common-0.7.0 .container" (dict " Values" .Values.container " context" $) } }
5+ {{ include " cf-common-0.7.1 .container" (dict " Values" .Values.container " context" $) } }
66*/}}
7- { {- define " cf-common-0.7.0 .container" -} }
7+ { {- define " cf-common-0.7.1 .container" -} }
88
99{ {/* Restoring root $ context */} }
1010{ {- $ := .context -} }
1111
12- { {- $containerName := include " cf-common-0.7.0 .names.fullname" $ -} }
12+ { {- $containerName := include " cf-common-0.7.1 .names.fullname" $ -} }
1313{ {- if and (hasKey .Values " nameOverride" ) .Values.nameOverride } }
14- { {- $containerName = include " cf-common-0.7.0 .tplrender" (dict " Values" .Values.nameOverride " context" $) -} }
14+ { {- $containerName = include " cf-common-0.7.1 .tplrender" (dict " Values" .Values.nameOverride " context" $) -} }
1515{ {- end } }
1616
1717- name: { { $containerName } }
18- image: { { include " cf-common-0.7.0 .image.name" (dict " image" .Values.image " context" $) } }
18+ image: { { include " cf-common-0.7.1 .image.name" (dict " image" .Values.image " context" $) } }
1919 imagePullPolicy: { { .Values.image.pullPolicy | default " Always" } }
2020
2121 { {- with .Values.command } }
2222 { {- if not (kindIs " slice" .) } }
2323 { {- fail " ERROR: container.command block must be a list!" } }
2424 { {- end } }
25- command: { {- include " cf-common-0.7.0 .tplrender" (dict " Values" . " context" $) | nindent 2 } }
25+ command: { {- include " cf-common-0.7.1 .tplrender" (dict " Values" . " context" $) | nindent 2 } }
2626 { {- end } }
2727
2828 { {- with .Values.args } }
@@ -52,12 +52,12 @@ Usage:
5252 { {- if not (kindIs " slice" .) } }
5353 { { fail " ERROR: container.envFrom block must be a list!" } }
5454 { {- end } }
55- { {- include " cf-common-0.7.0 .tplrender" (dict " Values" . " context" $) | trim | nindent 4 } }
55+ { {- include " cf-common-0.7.1 .tplrender" (dict " Values" . " context" $) | trim | nindent 4 } }
5656 { {- end } }
5757 { {- range $secretName , $secretItem := $.Values.secrets } }
5858 { {- if $secretItem .enabled } }
5959 - secretRef:
60- name: { { printf " %s-%s" (include " cf-common-0.7.0 .names.fullname" $) $secretName } }
60+ name: { { printf " %s-%s" (include " cf-common-0.7.1 .names.fullname" $) $secretName } }
6161 { {- end } }
6262 { {- end } }
6363 { {- end } }
@@ -74,18 +74,15 @@ For backward compatibility (.Values.env takes precedence over .Values.container.
7474 { {- $mergedEnv = merge $mergedEnv $.Values.global.env } }
7575 { {- end } }
7676 env:
77- { {- include " cf-common-0.7.0 .env-vars" (dict " Values" $mergedEnv " context" $) | trim | nindent 2 } }
77+ { {- include " cf-common-0.7.1 .env-vars" (dict " Values" $mergedEnv " context" $) | trim | nindent 2 } }
7878 { {- end } }
7979
80- { {- include " cf-common-0.7.0 .ports" $ | trim | nindent 2 } }
80+ { {- include " cf-common-0.7.1 .ports" $ | trim | nindent 2 } }
8181
82- { {- if or .Values.volumeMounts $.Values.volumeClaimTemplates } }
83- volumeMounts:
84- { {- include " cf-common-0.7.0.volumeMounts" (dict " Values" .Values.volumeMounts " context" $) | trim | nindent 2 } }
85- { {- end } }
82+ volumeMounts: { { include " cf-common-0.7.1.volumeMounts" (dict " Values" .Values.volumeMounts " context" $) | trim | nindent 2 } }
8683
8784 { {- with .Values.probes } }
88- { {- include " cf-common-0.7.0 .probes" . | trim | nindent 2 } }
85+ { {- include " cf-common-0.7.1 .probes" . | trim | nindent 2 } }
8986 { {- end } }
9087
9188 { {- with .Values.resources } }
0 commit comments