Skip to content

Commit

Permalink
[release-1.33] Add links for arm64 artifacts to consoleclidownload.go (
Browse files Browse the repository at this point in the history
…#2662)

* add links for arm64 artifacts to consoleclidownload.go

* Reflect new archive name

---------

Co-authored-by: Michal Vinkler <mvinkler@redhat.com>
Co-authored-by: David Simansky <dsimansk@redhat.com>
  • Loading branch information
3 people committed May 14, 2024
1 parent adf8115 commit 68e6170
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,21 @@ func populateKnConsoleCLIDownload(baseURL string, instance *operatorv1beta1.Knat
Links: []consolev1.CLIDownloadLink{{
Text: "Download kn for Linux for x86_64",
Href: baseURL + "/kn-linux-amd64.tar.gz",
}, {
Text: "Download kn for Linux for ARM 64",
Href: baseURL + "/kn-linux-arm64.tar.gz",
}, {
Text: "Download kn for Linux for IBM Power little endian",
Href: baseURL + "/kn-linux-ppc64le.tar.gz",
}, {
Text: "Download kn for Linux for IBM Z",
Href: baseURL + "/kn-linux-s390x.tar.gz",
}, {
Text: "Download kn for macOS",
Text: "Download kn for macOS for x86_64",
Href: baseURL + "/kn-macos-amd64.tar.gz",
}, {
Text: "Download kn for macOS for ARM 64",
Href: baseURL + "/kn-macos-arm64.tar.gz",
}, {
Text: "Download kn for Windows",
Href: baseURL + "/kn-windows-amd64.zip",
Expand Down
4 changes: 2 additions & 2 deletions test/servinge2e/verify_deploy_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func TestKnConsoleCLIDownload(t *testing.T) {
t.Fatalf("Failed to GET kn ConsoleCLIDownload: %v", err)
}
// Verify the links in kn CCD CO
if len(ccd.Spec.Links) != 5 {
t.Fatalf("expecting 5 links for artifacts for kn ConsoleCLIDownload, found %d", len(ccd.Spec.Links))
if len(ccd.Spec.Links) != 7 {
t.Fatalf("expecting 7 links for artifacts for kn ConsoleCLIDownload, found %d", len(ccd.Spec.Links))
}
// Verify if individual link starts with correct route
for _, link := range ccd.Spec.Links {
Expand Down

0 comments on commit 68e6170

Please sign in to comment.