Skip to content

Commit

Permalink
Fix k10multicluster app
Browse files Browse the repository at this point in the history
Changed upstream to package the binary as a tar.gz file instead
of a direct download. This was tested on a linux host.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Nov 17, 2021
1 parent 409cbdb commit 8b4a5ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/get/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2516,13 +2516,13 @@ func Test_DownloadK10multicluster(t *testing.T) {
os: "darwin",
arch: arch64bit,
version: v,
url: `https://github.com/kastenhq/external-tools/releases/download/4.0.6/k10multicluster_4.0.6_macOS_amd64`,
url: `https://github.com/kastenhq/external-tools/releases/download/4.0.6/k10multicluster_4.0.6_macOS_amd64.tar.gz`,
},
{
os: "linux",
arch: arch64bit,
version: v,
url: `https://github.com/kastenhq/external-tools/releases/download/4.0.6/k10multicluster_4.0.6_linux_amd64`,
url: `https://github.com/kastenhq/external-tools/releases/download/4.0.6/k10multicluster_4.0.6_linux_amd64.tar.gz`,
},
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/get/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}}
{{ $osStr = "macOS" }}
{{- end -}}
{{.Name}}_{{.Version}}_{{$osStr}}_{{$archStr}}`,
{{.Name}}_{{.Version}}_{{$osStr}}_{{$archStr}}.tar.gz`,
})

tools = append(tools,
Expand Down

0 comments on commit 8b4a5ee

Please sign in to comment.