From de7d302727aeffef8448908d6e7a2c7504ebef05 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Tue, 20 Aug 2024 11:28:35 +0200 Subject: [PATCH] fix(test): worker nodes join support from v1.29 onwards Signed-off-by: Dario Tranchitella --- e2e/worker_kubeadm_join_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/worker_kubeadm_join_test.go b/e2e/worker_kubeadm_join_test.go index 993c37ee..8b247072 100644 --- a/e2e/worker_kubeadm_join_test.go +++ b/e2e/worker_kubeadm_join_test.go @@ -57,7 +57,7 @@ var _ = Describe("starting a kind worker with kubeadm", func() { Port: 31443, }, Kubernetes: kamajiv1alpha1.KubernetesSpec{ - Version: "v1.25.3", + Version: "v1.29.0", Kubelet: kamajiv1alpha1.KubeletSpec{ CGroupFS: "cgroupfs", }, @@ -143,11 +143,11 @@ var _ = Describe("starting a kind worker with kubeadm", func() { }) By("executing the command in the worker node", func() { - cmds := append(strings.Split(strings.TrimSpace(joinCommandBuffer.String()), " "), "--ignore-preflight-errors", "SystemVerification") + cmds := append(strings.Split(strings.TrimSpace(joinCommandBuffer.String()), " "), "--ignore-preflight-errors=SystemVerification") exitCode, _, err := workerContainer.Exec(ctx, cmds) - Expect(exitCode).To(Equal(0)) Expect(err).ToNot(HaveOccurred()) + Expect(exitCode).To(Equal(0)) }) By("waiting for nodes", func() {