11{ {/*
22Renders main container in pod template
33Usage:
4- {{ include " cf-common-0.1.1 .container" (dict " Values" .Values.container " context" $) } }
4+ {{ include " cf-common-0.1.2 .container" (dict " Values" .Values.container " context" $) } }
55*/}}
6- { {- define " cf-common-0.1.1 .container" -} }
6+ { {- define " cf-common-0.1.2 .container" -} }
77
88{ {/* Restoring root $ context */} }
99{ {- $ := .context -} }
1010
11- - name: { { include " cf-common-0.1.1 .names.fullname" $ } }
12- image: { { include " cf-common-0.1.1 .image.name" (dict " image" .Values.image " context" $) } }
11+ - name: { { include " cf-common-0.1.2 .names.fullname" $ } }
12+ image: { { include " cf-common-0.1.2 .image.name" (dict " image" .Values.image " context" $) } }
1313 imagePullPolicy: { { .Values.image.pullPolicy | default " Always" } }
1414
1515 { {- with .Values.command } }
1616 { {- if not (kindIs " slice" .) } }
1717 { {- fail " ERROR: container.command block must be a list!" } }
1818 { {- end } }
19- command: { {- include " cf-common-0.1.1 .tplrender" (dict " Values" . " context" $) | nindent 2 } }
19+ command: { {- include " cf-common-0.1.2 .tplrender" (dict " Values" . " context" $) | nindent 2 } }
2020 { {- end } }
2121
2222 { {- with .Values.args } }
@@ -46,11 +46,11 @@ Usage:
4646 { {- if not (kindIs " slice" .) } }
4747 { { fail " ERROR: container.envFrom block must be a list!" } }
4848 { {- end } }
49- { {- include " cf-common-0.1.1 .tplrender" (dict " Values" . " context" $) | trim | nindent 4 } }
49+ { {- include " cf-common-0.1.2 .tplrender" (dict " Values" . " context" $) | trim | nindent 4 } }
5050 { {- end } }
5151 { {- range $secretName , $_ := $.Values.secrets } }
5252 - secretRef:
53- name: { { printf " %s-%s" (include " cf-common-0.1.1 .names.fullname" $) $secretName } }
53+ name: { { printf " %s-%s" (include " cf-common-0.1.2 .names.fullname" $) $secretName } }
5454 { {- end } }
5555 { {- end } }
5656
@@ -66,18 +66,18 @@ For backward compatibility (.Values.env takes precedence over .Values.container.
6666 { {- $mergedEnv = merge $mergedEnv $.Values.global.env } }
6767 { {- end } }
6868 env:
69- { {- include " cf-common-0.1.1 .env-vars" (dict " Values" $mergedEnv " context" $) | trim | nindent 2 } }
69+ { {- include " cf-common-0.1.2 .env-vars" (dict " Values" $mergedEnv " context" $) | trim | nindent 2 } }
7070 { {- end } }
7171
72- ports: { {- include " cf-common-0.1.1 .ports" $ | trim | nindent 2 } }
72+ ports: { {- include " cf-common-0.1.2 .ports" $ | trim | nindent 2 } }
7373
7474 { {- with .Values.volumeMounts } }
7575 volumeMounts:
76- { {- include " cf-common-0.1.1 .volumeMounts" (dict " Values" . " context" $) | trim | nindent 2 } }
76+ { {- include " cf-common-0.1.2 .volumeMounts" (dict " Values" . " context" $) | trim | nindent 2 } }
7777 { {- end } }
7878
7979 { {- with .Values.probes } }
80- { {- include " cf-common-0.1.1 .probes" . | trim | nindent 2 } }
80+ { {- include " cf-common-0.1.2 .probes" . | trim | nindent 2 } }
8181 { {- end } }
8282
8383 { {- with .Values.resources } }
0 commit comments