You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2021. It is now read-only.
ifassert.NotNil(t, statefulSet.Spec.Template.Spec.SecurityContext, "StatefulSet Spec is missing SecurityContext definition") {
183
183
assert.EqualValues(t, userID, *statefulSet.Spec.Template.Spec.SecurityContext.RunAsUser, "SecurityContext Spec runAsUser does not have expected value")
184
184
assert.Equal(t, userID, *statefulSet.Spec.Template.Spec.SecurityContext.FSGroup, "SecurityContext Spec fsGroup does not have expected value")
185
-
} else {
186
-
t.Errorf("StatefulSet Spec is missing SecurityContext definition")
assert.Equal(t, "nodetype1", statefulSet.Spec.Template.Spec.Tolerations[0].Key, "ClusterSpec.Tolerations[0].Key does not have expected value")
213
+
assert.Equal(t, corev1.TolerationOpEqual, statefulSet.Spec.Template.Spec.Tolerations[0].Operator, "ClusterSpec.Tolerations[0].Operator does not have expected value")
214
+
assert.Equal(t, "true", statefulSet.Spec.Template.Spec.Tolerations[0].Value, "ClusterSpec.Tolerations[0].Value does not have expected value")
215
+
assert.Equal(t, corev1.TaintEffectNoSchedule, statefulSet.Spec.Template.Spec.Tolerations[0].Effect, "ClusterSpec.Tolerations[0].Effect does not have expected value")
216
+
217
+
assert.Equal(t, "nodetype1", statefulSet.Spec.Template.Spec.Tolerations[1].Key, "ClusterSpec.Tolerations[1].Key does not have expected value")
218
+
assert.Equal(t, corev1.TolerationOpEqual, statefulSet.Spec.Template.Spec.Tolerations[1].Operator, "ClusterSpec.Tolerations[1].Operator does not have expected value")
219
+
assert.Equal(t, "true", statefulSet.Spec.Template.Spec.Tolerations[1].Value, "ClusterSpec.Tolerations[1].Value does not have expected value")
220
+
assert.Equal(t, corev1.TaintEffectNoExecute, statefulSet.Spec.Template.Spec.Tolerations[1].Effect, "ClusterSpec.Tolerations[1].Effect does not have expected value")
0 commit comments