From 9ba5affa14e14d77abe8a26e132123564647ef74 Mon Sep 17 00:00:00 2001 From: Ethan Mosbaugh Date: Wed, 30 Oct 2024 13:29:15 -0700 Subject: [PATCH] feat: clean up old images in k0s images directory --- operator/pkg/artifacts/upgrade.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/operator/pkg/artifacts/upgrade.go b/operator/pkg/artifacts/upgrade.go index bc8fe5083..2c6d67345 100644 --- a/operator/pkg/artifacts/upgrade.go +++ b/operator/pkg/artifacts/upgrade.go @@ -82,8 +82,6 @@ var copyArtifactsJob = &batchv1.Job{ "/usr/local/bin/local-artifact-mirror pull helmcharts --data-dir /embedded-cluster $INSTALLATION_DATA\n" + "mv /embedded-cluster/bin/k0s /embedded-cluster/bin/k0s-upgrade\n" + "rm /embedded-cluster/images/images-amd64-* || true\n" + - "cd /embedded-cluster/images/\n" + - "mv images-amd64.tar images-amd64-${INSTALLATION}.tar\n" + "echo 'done'", }, }, @@ -262,8 +260,8 @@ func CreateAutopilotAirgapPlanCommand(ctx context.Context, cli client.Client, in } imageURL := fmt.Sprintf( - "http://127.0.0.1:%d/images/images-amd64-%s.tar", - provider.LocalArtifactMirrorPort(), in.Name, + "http://127.0.0.1:%d/images/images-amd64.tar", + provider.LocalArtifactMirrorPort(), ) return &autopilotv1beta2.PlanCommand{