diff --git a/hack/krew.yaml b/hack/krew.yaml index bb738989..a188e7c6 100644 --- a/hack/krew.yaml +++ b/hack/krew.yaml @@ -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 diff --git a/hack/make-binaries.sh b/hack/make-binaries.sh index 8a0e43b8..561b0862 100755 --- a/hack/make-binaries.sh +++ b/hack/make-binaries.sh @@ -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}/.." diff --git a/site/content/docs/user-guide/setup/install.md b/site/content/docs/user-guide/setup/install.md index a4b9a037..c725696b 100644 --- a/site/content/docs/user-guide/setup/install.md +++ b/site/content/docs/user-guide/setup/install.md @@ -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 ) ``` @@ -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