File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
charts/cf-common/templates/controller Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -92,21 +92,21 @@ nodeSelector: {{ toYaml . | nindent 2 }}
92
92
93
93
{ {- $tolerations := .Values.tolerations | default list } }
94
94
{ {- $globalTolerations := .Values.global.tolerations | default list } }
95
+ { {- if or (not (kindIs " slice" $tolerations )) (not (kindIs " slice" $globalTolerations )) } }
96
+ { {- fail " ERROR: tolerations block must be a list!" } }
97
+ { {- end } }
95
98
{ {- $allToleration := concat $globalTolerations $tolerations } }
96
99
{ {- with $allToleration } }
97
- { {- if not (kindIs " slice" .) } }
98
- { {- fail " ERROR: tolerations block must be a list!" } }
99
- { {- end } }
100
100
tolerations: { { toYaml . | nindent 2 } }
101
101
{ {- end } }
102
102
103
103
{ {- $affinity := .Values.affinity | default dict } }
104
104
{ {- $globalAffinity := .Values.global.affinity | default dict } }
105
+ { {- if or (not (kindIs " map" $affinity )) (not (kindIs " map" $globalAffinity )) } }
106
+ { {- fail " ERROR: affinity block must be a map!" } }
107
+ { {- end } }
105
108
{ {- $allAffinity := mergeOverwrite $globalAffinity $affinity } }
106
109
{ {- with $allAffinity } }
107
- { {- if not (kindIs " map" .) } }
108
- { {- fail " ERROR: affinity block must be a map!" } }
109
- { {- end } }
110
110
affinity: { { toYaml . | nindent 2 } }
111
111
{ {- end } }
112
112
You can’t perform that action at this time.
0 commit comments