File tree Expand file tree Collapse file tree 5 files changed +13
-14
lines changed Expand file tree Collapse file tree 5 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
name : netbox
3
- version : 5.0.0-beta11
3
+ version : 5.0.0-beta12
4
4
appVersion : " v4.0.0"
5
5
type : application
6
6
kubeVersion : ^1.25.0-0
Original file line number Diff line number Diff line change 39
39
{{- if .Values.housekeeping.podSecurityContext.enabled }}
40
40
securityContext : {{- omit .Values.housekeeping.podSecurityContext "enabled" | toYaml | nindent 12 }}
41
41
{{- end }}
42
- {{- with .Values.housekeeping.initContainers }}
43
- initContainers :
44
- {{- toYaml . | nindent 10 }}
42
+ {{- if .Values.housekeeping.initContainers }}
43
+ {{- include "common.tplvalues.render" (dict "value" .Values.housekeeping.initContainers "context" $) | trim | nindent 10 }}
45
44
{{- end }}
46
45
containers :
47
46
- name : {{ .Chart.Name }}-housekeeping
96
95
{{- else if ne .Values.housekeeping.resourcesPreset "none" }}
97
96
resources : {{- include "common.resources.preset" (dict "type" .Values.housekeeping.resourcesPreset) | nindent 14 }}
98
97
{{- end }}
99
- {{- with .Values.housekeeping.sidecars }}
100
- {{- toYaml . | nindent 10 }}
98
+ {{- if .Values.housekeeping.sidecars }}
99
+ {{- include "common.tplvalues.render" (dict "value" .Values.housekeeping.sidecars "context" $) | nindent 10 }}
101
100
{{- end }}
102
101
volumes :
103
102
- name : config
Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ spec:
161
161
{{- else if ne .Values.resourcesPreset "none" }}
162
162
resources : {{- include "common.resources.preset" (dict "type" .Values.resourcesPreset) | nindent 10 }}
163
163
{{- end }}
164
- {{- with .Values.sidecars }}
165
- {{- toYaml . | nindent 6 }}
164
+ {{- if .Values.sidecars }}
165
+ {{- include "common.tplvalues.render" (dict "value" .Values.sidecars "context" $) | nindent 6 }}
166
166
{{- end }}
167
167
volumes :
168
168
- 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
{{- if .Values.test.securityContext.enabled }}
21
22
securityContext : {{- omit .Values.test.securityContext "enabled" | toYaml | nindent 12 }}
Original file line number Diff line number Diff line change 48
48
securityContext : {{- omit .Values.worker.podSecurityContext "enabled" | toYaml | nindent 8 }}
49
49
{{- end }}
50
50
{{- with .Values.worker.initContainers }}
51
- initContainers :
52
- {{- toYaml . | nindent 6 }}
51
+ {{- include "common.tplvalues.render" (dict "value" .Values.worker.initContainers "context" $) | trim | nindent 6 }}
53
52
{{- end }}
54
53
containers :
55
54
- name : {{ .Chart.Name }}-worker
@@ -104,8 +103,8 @@ spec:
104
103
{{- else if ne .Values.worker.resourcesPreset "none" }}
105
104
resources : {{- include "common.resources.preset" (dict "type" .Values.worker.resourcesPreset) | nindent 10 }}
106
105
{{- end }}
107
- {{- with .Values.worker.sidecars }}
108
- {{- toYaml . | nindent 6 }}
106
+ {{- if .Values.worker.sidecars }}
107
+ {{- include "common.tplvalues.render" (dict "value" .Values.worker.sidecars "context" $) | nindent 6 }}
109
108
{{- end }}
110
109
volumes :
111
110
- name : config
You can’t perform that action at this time.
0 commit comments