Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hack/test-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ set -x

./arkade get $1 --arch x86_64 --os mingw --quiet && file $HOME/.arkade/bin/$1.exe && rm $HOME/.arkade/bin/$1.exe && echo

./arkade get $1 --arch aarch64 --os mingw --quiet && file $HOME/.arkade/bin/$1.exe && rm $HOME/.arkade/bin/$1.exe && echo

./arkade get $1 --arch arm64 --os mingw --quiet && file $HOME/.arkade/bin/$1.exe && rm $HOME/.arkade/bin/$1.exe && echo
19 changes: 12 additions & 7 deletions pkg/get/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,25 +611,30 @@ https://github.com/inlets/inletsctl/releases/download/{{.Version}}/{{$fileName}}

tools = append(tools,
Tool{
Owner: "kubernetes-sigs",
Repo: "kustomize",
Name: "kustomize",
Description: "Customization of kubernetes YAML configurations",
Version: "v5.0.3",
Owner: "kubernetes-sigs",
Repo: "kustomize",
Name: "kustomize",
Description: "Customization of kubernetes YAML configurations",
VersionStrategy: GitHubVersionStrategy,
BinaryTemplate: `
{{$osStr := ""}}
{{$ext := "tar.gz"}}
{{- if eq .OS "linux" -}}
{{- if eq .Arch "x86_64" -}}
{{$osStr = "linux_amd64"}}
{{- else if eq .Arch "aarch64" -}}
{{$osStr = "linux_arm64"}}
{{$osStr = "linux_arm64"}}
{{- end -}}
{{- else if eq .OS "darwin" -}}
{{$osStr = "darwin_amd64"}}
{{- end -}}
{{ if HasPrefix .OS "ming" -}}
{{- if HasPrefix .OS "ming" -}}
{{$ext = "zip"}}
{{- if eq .Arch "x86_64" -}}
{{$osStr = "windows_amd64"}}
{{- else if or (eq .Arch "aarch64") (eq .Arch "arm64") -}} {{/* Check for both aarch64 and arm64 for Windows */}}
{{$osStr = "windows_arm64"}}
{{- end -}}
{{- end -}}
kustomize%2F{{.Version}}/{{.Name}}_{{.Version}}_{{$osStr}}.{{$ext}}`,
})
Expand Down