Skip to content

Commit

Permalink
revert to using ubuntu image to generate node join commands (#4109)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Oct 30, 2023
1 parent aa429aa commit ef2ebf9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/embeddedcluster/node_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit ef2ebf9

Please sign in to comment.