Skip to content

Commit

Permalink
Remove validation for Bottlerocket OS in bundles for Tinkerbell tests (
Browse files Browse the repository at this point in the history
  • Loading branch information
vignesh-goutham authored Feb 19, 2024
1 parent 8a19707 commit 2e8abda
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/e2e/airgap.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ func downloadAndServeTinkerbellArtifacts(t framework.T, bundleRelease []byte, ku
t.Fatalf("Cannot find vmlinuzUrl from release bundle")
}

brOsUrl := regexp.MustCompile(fmt.Sprintf("https://.*/raw/%s/.*bottlerocket.*amd64.img.gz", kubeVersion)).Find(bundleRelease)
if brOsUrl == nil {
t.Fatalf("Cannot find bottlerocketOS url from release bundle")
}

dir, err := os.MkdirTemp("", "tinkerbell_artifacts_")
if err != nil {
t.Fatalf("Cannot create temporary directory to serve Tinkerbell artifacts %v", err)
Expand All @@ -157,14 +152,6 @@ func downloadAndServeTinkerbellArtifacts(t framework.T, bundleRelease []byte, ku
t.Fatal(err)
}

t.Logf("Download bottlerocket OS from %s", brOsUrl)
// Save image file with kube version in the image name to satisfy condition to have kube version in the template name.
err = downloadFile(string(brOsUrl), dir+"/"+bottlerocketOSFileName+"-"+kubeVersion+".img.gz")
if err != nil {
t.Fatal(err)
}
t.Log("Downloaded Bottlerocket OS")

server := &http.Server{Addr: ":8080", Handler: http.FileServer(http.Dir(dir))}
go func() {
t.Log("Start local file server at :8080")
Expand Down

0 comments on commit 2e8abda

Please sign in to comment.