Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support linux/arm64 release #689

Merged
merged 1 commit into from
Feb 5, 2021
Merged
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
12 changes: 12 additions & 0 deletions hack/krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ spec:
matchLabels:
os: linux
arch: arm
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.tar.gz
sha256: KREW_TAR_CHECKSUM
bin: krew
files:
- from: ./krew-linux_arm64
to: krew
- from: ./LICENSE
to: .
selector:
matchLabels:
os: linux
arch: arm64
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew.tar.gz
sha256: KREW_TAR_CHECKSUM
bin: krew.exe
Expand Down
3 changes: 2 additions & 1 deletion hack/make-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ if ! command -v "gox" &>/dev/null; then
exit 1
fi

supported_platforms="darwin/amd64 windows/amd64 linux/amd64 linux/arm"
supported_platforms="darwin/amd64 windows/amd64 linux/amd64 linux/arm\
linux/arm64"
version_pkg="sigs.k8s.io/krew/internal/version"

cd "${SCRIPTDIR}/.."
Expand Down
4 changes: 2 additions & 2 deletions site/content/docs/user-guide/setup/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Krew self-hosts).
set -x; cd "$(mktemp -d)" &&
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.tar.gz" &&
tar zxvf krew.tar.gz &&
KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/arm.*$/arm/')" &&
KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/arm.*$/arm/' -e 's/aarch64$/arm64/')" &&
"$KREW" install krew
)
```
Expand All @@ -50,7 +50,7 @@ Krew self-hosts).
set -x; set temp_dir (mktemp -d); cd "$temp_dir" &&
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.tar.gz" &&
tar zxvf krew.tar.gz &&
set KREWNAME krew-(uname | tr '[:upper:]' '[:lower:]')_(uname -m | sed -e 's/x86_64/amd64/' -e 's/arm.*$/arm/') &&
set KREWNAME krew-(uname | tr '[:upper:]' '[:lower:]')_(uname -m | sed -e 's/x86_64/amd64/' -e 's/arm.*$/arm/' -e 's/aarch64$/arm64/' ) &&
./$KREWNAME install krew &&
set -e KREWNAME; set -e temp_dir
end
Expand Down