From ef2ebf92620e39dfe6c57bc520cde27bca116634 Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Tue, 31 Oct 2023 00:57:38 +0200 Subject: [PATCH] revert to using ubuntu image to generate node join commands (#4109) --- pkg/embeddedcluster/node_join.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/embeddedcluster/node_join.go b/pkg/embeddedcluster/node_join.go index b7e85e9b35..3d44c3344d 100644 --- a/pkg/embeddedcluster/node_join.go +++ b/pkg/embeddedcluster/node_join.go @@ -70,12 +70,6 @@ func runAddNodeCommandPod(ctx context.Context, client kubernetes.Interface, node } } - // get the kotsadm image, as we know that will always exist - kotsadmImage, err := util.ThisImage(ctx, client) - if err != nil { - return "", fmt.Errorf("failed to get kotsadm image: %w", err) - } - hostPathFile := corev1.HostPathFile hostPathDir := corev1.HostPathDirectory _, err = client.CoreV1().Pods("kube-system").Create(ctx, &corev1.Pod{ @@ -149,7 +143,7 @@ func runAddNodeCommandPod(ctx context.Context, client kubernetes.Interface, node Containers: []corev1.Container{ { Name: "k0s-token-generator", - Image: kotsadmImage, + Image: "ubuntu:jammy", // this will not work on airgap, but it needs to be debian based at the moment Command: []string{"/mnt/k0s"}, Args: []string{ "token",