File tree 3 files changed +16
-0
lines changed
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 63
63
requiredDuringSchedulingIgnoredDuringExecution :
64
64
nodeSelectorTerms : {{ include "linux-node-selector-terms" . | nindent 14 }}
65
65
tolerations : {{ include "linux-node-tolerations" . | nindent 8 }}
66
+ {{- if .Values.extraTolerations }}
67
+ {{ toYaml .Values.extraTolerations | indent 8 }}
68
+ {{- end }}
66
69
containers :
67
70
- image : {{ .Values.rancherImage }}:{{ default .Chart.AppVersion .Values.rancherImageTag }}
68
71
imagePullPolicy : {{ default "IfNotPresent" .Values.rancherImagePullPolicy }}
Original file line number Diff line number Diff line change @@ -545,3 +545,12 @@ tests:
545
545
content :
546
546
name : CATTLE_NAMESPACE
547
547
value : NAMESPACE
548
+ - it : sets extraTolerations
549
+ set :
550
+ extraTolerations :
551
+ - key : " node.cloudprovider.kubernetes.io/uninitialized"
552
+ value : " true"
553
+ effect : " NoSchedule"
554
+ asserts :
555
+ - exists :
556
+ path : spec.template.spec.tolerations[1]
Original file line number Diff line number Diff line change @@ -178,6 +178,10 @@ startupProbe:
178
178
timeoutSeconds : 5
179
179
periodSeconds : 10
180
180
failureThreshold : 12
181
+
182
+ # Additional taints to tolerate
183
+ extraTolerations : {}
184
+
181
185
livenessProbe :
182
186
timeoutSeconds : 5
183
187
periodSeconds : 30
You can’t perform that action at this time.
0 commit comments