Skip to content

Commit

Permalink
Support arm64 releases (#689)
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <[email protected]>
  • Loading branch information
ahmetb authored Feb 5, 2021
1 parent a1402f8 commit 7f6bb59
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
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

0 comments on commit 7f6bb59

Please sign in to comment.