22Renders main container in pod template.
33Called from pod template.
44Usage:
5- {{ include " cf-common-0.5.2 .container" (dict " Values" .Values.container " context" $) } }
5+ {{ include " cf-common-0.6.0 .container" (dict " Values" .Values.container " context" $) } }
66*/}}
7- { {- define " cf-common-0.5.2 .container" -} }
7+ { {- define " cf-common-0.6.0 .container" -} }
88
99{ {/* Restoring root $ context */} }
1010{ {- $ := .context -} }
1111
12- { {- $containerName := include " cf-common-0.5.2 .names.fullname" $ -} }
12+ { {- $containerName := include " cf-common-0.6.0 .names.fullname" $ -} }
1313{ {- if and (hasKey .Values " nameOverride" ) .Values.nameOverride } }
14- { {- $containerName = include " cf-common-0.5.2 .tplrender" (dict " Values" .Values.nameOverride " context" $) -} }
14+ { {- $containerName = include " cf-common-0.6.0 .tplrender" (dict " Values" .Values.nameOverride " context" $) -} }
1515{ {- end } }
1616
1717
1818- name: { { $containerName } }
19- image: { { include " cf-common-0.5.2 .image.name" (dict " image" .Values.image " context" $) } }
19+ image: { { include " cf-common-0.6.0 .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.2 .tplrender" (dict " Values" . " context" $) | nindent 2 } }
26+ command: { {- include " cf-common-0.6.0 .tplrender" (dict " Values" . " context" $) | nindent 2 } }
2727 { {- end } }
2828
2929 { {- with .Values.args } }
@@ -53,12 +53,12 @@ Usage:
5353 { {- if not (kindIs " slice" .) } }
5454 { { fail " ERROR: container.envFrom block must be a list!" } }
5555 { {- end } }
56- { {- include " cf-common-0.5.2 .tplrender" (dict " Values" . " context" $) | trim | nindent 4 } }
56+ { {- include " cf-common-0.6.0 .tplrender" (dict " Values" . " context" $) | trim | nindent 4 } }
5757 { {- end } }
5858 { {- range $secretName , $secretItem := $.Values.secrets } }
5959 { {- if $secretItem .enabled } }
6060 - secretRef:
61- name: { { printf " %s-%s" (include " cf-common-0.5.2 .names.fullname" $) $secretName } }
61+ name: { { printf " %s-%s" (include " cf-common-0.6.0 .names.fullname" $) $secretName } }
6262 { {- end } }
6363 { {- end } }
6464 { {- end } }
@@ -75,18 +75,18 @@ For backward compatibility (.Values.env takes precedence over .Values.container.
7575 { {- $mergedEnv = merge $mergedEnv $.Values.global.env } }
7676 { {- end } }
7777 env:
78- { {- include " cf-common-0.5.2 .env-vars" (dict " Values" $mergedEnv " context" $) | trim | nindent 2 } }
78+ { {- include " cf-common-0.6.0 .env-vars" (dict " Values" $mergedEnv " context" $) | trim | nindent 2 } }
7979 { {- end } }
8080
81- { {- include " cf-common-0.5.2 .ports" $ | trim | nindent 2 } }
81+ { {- include " cf-common-0.6.0 .ports" $ | trim | nindent 2 } }
8282
8383 { {- with .Values.volumeMounts } }
8484 volumeMounts:
85- { {- include " cf-common-0.5.2 .volumeMounts" (dict " Values" . " context" $) | trim | nindent 2 } }
85+ { {- include " cf-common-0.6.0 .volumeMounts" (dict " Values" . " context" $) | trim | nindent 2 } }
8686 { {- end } }
8787
8888 { {- with .Values.probes } }
89- { {- include " cf-common-0.5.2 .probes" . | trim | nindent 2 } }
89+ { {- include " cf-common-0.6.0 .probes" . | trim | nindent 2 } }
9090 { {- end } }
9191
9292 { {- with .Values.resources } }
0 commit comments