File tree Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 38
38
automountServiceAccountToken : {{ .Values.housekeeping.automountServiceAccountToken }}
39
39
securityContext :
40
40
{{- toYaml .Values.housekeeping.podSecurityContext | nindent 12 }}
41
- {{- with .Values.housekeeping.initContainers }}
42
- initContainers :
43
- {{- toYaml . | nindent 10 }}
41
+ {{- if .Values.housekeeping.initContainers }}
42
+ {{- include "common.tplvalues.render" (dict "value" .Values.housekeeping.initContainers "context" $) | trim | nindent 10 }}
44
43
{{- end }}
45
44
containers :
46
45
- name : {{ .Chart.Name }}-housekeeping
94
93
{{- else if ne .Values.housekeeping.resourcesPreset "none" }}
95
94
resources : {{- include "common.resources.preset" (dict "type" .Values.housekeeping.resourcesPreset) | nindent 14 }}
96
95
{{- end }}
97
- {{- with .Values.housekeeping.sidecars }}
98
- {{- toYaml . | nindent 10 }}
96
+ {{- if .Values.housekeeping.sidecars }}
97
+ {{- include "common.tplvalues.render" (dict "value" .Values.housekeeping.sidecars "context" $) | nindent 10 }}
99
98
{{- end }}
100
99
volumes :
101
100
- name : config
Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ spec:
159
159
{{- else if ne .Values.resourcesPreset "none" }}
160
160
resources : {{- include "common.resources.preset" (dict "type" .Values.resourcesPreset) | nindent 10 }}
161
161
{{- end }}
162
- {{- with .Values.sidecars }}
163
- {{- toYaml . | nindent 6 }}
162
+ {{- if .Values.sidecars }}
163
+ {{- include "common.tplvalues.render" (dict "value" .Values.sidecars "context" $) | nindent 6 }}
164
164
{{- end }}
165
165
volumes :
166
166
- name : config
Original file line number Diff line number Diff line change 14
14
command : ['wget']
15
15
args : ['{{ include "common.names.fullname" . }}:{{ .Values.service.port }}']
16
16
{{- if .Values.test.resources }}
17
- resources :
18
- {{- toYaml .Values.test.resources | nindent 6 }}
17
+ resources : {{ toYaml .Values.test.resources | nindent 6 }}
18
+ {{- else if ne .Values.test.resourcesPreset "none" }}
19
+ resources : {{- include "common.resources.preset" (dict "type" .Values.test.resourcesPreset) | nindent 6 }}
19
20
{{- end }}
20
21
restartPolicy : Never
Original file line number Diff line number Diff line change 46
46
automountServiceAccountToken : {{ .Values.worker.automountServiceAccountToken }}
47
47
securityContext :
48
48
{{- toYaml .Values.worker.podSecurityContext | nindent 8 }}
49
- {{- with .Values.worker.initContainers }}
50
- initContainers :
51
- {{- toYaml . | nindent 6 }}
49
+ {{- if .Values.worker.initContainers }}
50
+ {{- include "common.tplvalues.render" (dict "value" .Values.worker.initContainers "context" $) | trim | nindent 6 }}
52
51
{{- end }}
53
52
containers :
54
53
- name : {{ .Chart.Name }}-worker
@@ -102,8 +101,8 @@ spec:
102
101
{{- else if ne .Values.worker.resourcesPreset "none" }}
103
102
resources : {{- include "common.resources.preset" (dict "type" .Values.worker.resourcesPreset) | nindent 10 }}
104
103
{{- end }}
105
- {{- with .Values.worker.sidecars }}
106
- {{- toYaml . | nindent 6 }}
104
+ {{- if .Values.worker.sidecars }}
105
+ {{- include "common.tplvalues.render" (dict "value" .Values.worker.sidecars "context" $) | nindent 6 }}
107
106
{{- end }}
108
107
volumes :
109
108
- name : config
You can’t perform that action at this time.
0 commit comments