22Renders main container in pod template.
33Called from pod template.
44Usage:
5- {{ include " cf-common-0.5.0 .container" (dict " Values" .Values.container " context" $) } }
5+ {{ include " cf-common-0.5.1 .container" (dict " Values" .Values.container " context" $) } }
66*/}}
7- { {- define " cf-common-0.5.0 .container" -} }
7+ { {- define " cf-common-0.5.1 .container" -} }
88
99{ {/* Restoring root $ context */} }
1010{ {- $ := .context -} }
1111
12- { {- $containerName := include " cf-common-0.5.0 .names.fullname" $ -} }
12+ { {- $containerName := include " cf-common-0.5.1 .names.fullname" $ -} }
1313{ {- if and (hasKey .Values " nameOverride" ) .Values.nameOverride } }
14- { {- $containerName = include " cf-common-0.5.0 .tplrender" (dict " Values" .Values.nameOverride " context" $) -} }
14+ { {- $containerName = include " cf-common-0.5.1 .tplrender" (dict " Values" .Values.nameOverride " context" $) -} }
1515{ {- end } }
1616
1717
1818- name: { { $containerName } }
19- image: { { include " cf-common-0.5.0 .image.name" (dict " image" .Values.image " context" $) } }
19+ image: { { include " cf-common-0.5.1 .image.name" (dict " image" .Values.image " context" $) } }
2020 imagePullPolicy: { { .Values.image.pullPolicy | default " Always" } }
2121
2222 { {- with .Values.command } }
2323 { {- if not (kindIs " slice" .) } }
2424 { {- fail " ERROR: container.command block must be a list!" } }
2525 { {- end } }
26- command: { {- include " cf-common-0.5.0 .tplrender" (dict " Values" . " context" $) | nindent 2 } }
26+ command: { {- include " cf-common-0.5.1 .tplrender" (dict " Values" . " context" $) | nindent 2 } }
2727 { {- end } }
2828
2929 { {- with .Values.args } }
@@ -53,11 +53,11 @@ Usage:
5353 { {- if not (kindIs " slice" .) } }
5454 { { fail " ERROR: container.envFrom block must be a list!" } }
5555 { {- end } }
56- { {- include " cf-common-0.5.0 .tplrender" (dict " Values" . " context" $) | trim | nindent 4 } }
56+ { {- include " cf-common-0.5.1 .tplrender" (dict " Values" . " context" $) | trim | nindent 4 } }
5757 { {- end } }
5858 { {- range $secretName , $_ := $.Values.secrets } }
5959 - secretRef:
60- name: { { printf " %s-%s" (include " cf-common-0.5.0 .names.fullname" $) $secretName } }
60+ name: { { printf " %s-%s" (include " cf-common-0.5.1 .names.fullname" $) $secretName } }
6161 { {- end } }
6262 { {- end } }
6363
@@ -73,18 +73,18 @@ For backward compatibility (.Values.env takes precedence over .Values.container.
7373 { {- $mergedEnv = merge $mergedEnv $.Values.global.env } }
7474 { {- end } }
7575 env:
76- { {- include " cf-common-0.5.0 .env-vars" (dict " Values" $mergedEnv " context" $) | trim | nindent 2 } }
76+ { {- include " cf-common-0.5.1 .env-vars" (dict " Values" $mergedEnv " context" $) | trim | nindent 2 } }
7777 { {- end } }
7878
79- { {- include " cf-common-0.5.0 .ports" $ | trim | nindent 2 } }
79+ { {- include " cf-common-0.5.1 .ports" $ | trim | nindent 2 } }
8080
8181 { {- with .Values.volumeMounts } }
8282 volumeMounts:
83- { {- include " cf-common-0.5.0 .volumeMounts" (dict " Values" . " context" $) | trim | nindent 2 } }
83+ { {- include " cf-common-0.5.1 .volumeMounts" (dict " Values" . " context" $) | trim | nindent 2 } }
8484 { {- end } }
8585
8686 { {- with .Values.probes } }
87- { {- include " cf-common-0.5.0 .probes" . | trim | nindent 2 } }
87+ { {- include " cf-common-0.5.1 .probes" . | trim | nindent 2 } }
8888 { {- end } }
8989
9090 { {- with .Values.resources } }
0 commit comments