From 056b9f33c80df2ac386d992129dfc84f5ed3d5fa Mon Sep 17 00:00:00 2001 From: chenk Date: Mon, 13 Nov 2023 09:47:40 +0200 Subject: [PATCH] fix: no schedule toleration Signed-off-by: chenk --- pkg/flag/kubernetes_flags_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/flag/kubernetes_flags_test.go b/pkg/flag/kubernetes_flags_test.go index 0b0c0f3ea953..50c0b4f793bf 100644 --- a/pkg/flag/kubernetes_flags_test.go +++ b/pkg/flag/kubernetes_flags_test.go @@ -14,10 +14,9 @@ func TestOptionToToleration(t *testing.T) { name string tolerationsOptions []string want []corev1.Toleration - err error }{ { - name: "execute", + name: "no execute", tolerationsOptions: []string{"key1=CriticalAddonsOnly:NoExecute:3600"}, want: []corev1.Toleration{ { @@ -30,7 +29,7 @@ func TestOptionToToleration(t *testing.T) { }, }, { - name: "schedule", + name: "no schedule", tolerationsOptions: []string{"key1=CriticalAddonsOnly:NoSchedule"}, want: []corev1.Toleration{ {