Skip to content

Commit

Permalink
Add ppc64le support (#755)
Browse files Browse the repository at this point in the history
* Add ppc64le support

* Release v0.4.2-rc.1
  • Loading branch information
mgiessing authored Aug 22, 2022
1 parent 84b5641 commit f9772a9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions cmd/validate-krew-manifest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ func allPlatforms() []installation.OSArchPair {
{OS: "linux", Arch: "amd64"},
{OS: "linux", Arch: "arm"},
{OS: "linux", Arch: "arm64"},
{OS: "linux", Arch: "ppc64le"},
{OS: "darwin", Arch: "386"},
{OS: "darwin", Arch: "amd64"},
{OS: "darwin", Arch: "arm64"},
Expand Down
2 changes: 1 addition & 1 deletion docs/RELEASING_KREW.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
```sh
krew=out/bin/krew-darwin_amd64 # assuming macOS amd64

for osarch in darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 windows_amd64; do
for osarch in darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_ppc64le windows_amd64; do
KREW_ROOT="$(mktemp -d --tmpdir krew-XXXXXXXXXX)" KREW_OS="${osarch%_*}" KREW_ARCH="${osarch#*_}" \
$krew install --manifest=out/krew.yaml --archive="out/krew-${osarch}.tar.gz"
done
Expand Down
12 changes: 12 additions & 0 deletions hack/krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@ spec:
matchLabels:
os: linux
arch: arm64
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew-linux_ppc64le.tar.gz
sha256: KREW_LINUX_PPC64LE_CHECKSUM
bin: krew
files:
- from: ./krew-linux_ppc64le
to: krew
- from: ./LICENSE
to: .
selector:
matchLabels:
os: linux
arch: ppc64le
- uri: https://github.com/kubernetes-sigs/krew/releases/download/KREW_TAG/krew-windows_amd64.tar.gz
sha256: KREW_WINDOWS_AMD64_CHECKSUM
bin: krew.exe
Expand Down
2 changes: 1 addition & 1 deletion hack/make-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if ! command -v "gox" &>/dev/null; then
fi

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

cd "${SCRIPTDIR}/.."
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/developer-guide/plugin-manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ accessible to download from a user’s machine. The relevant fields are:

Krew makes it possible to install the same plugin on different operating systems
(e.g., `windows`, `darwin` (macOS), and `linux`) and different architectures
(e.g., `amd64`, `386`, `arm`, and `arm64`).
(e.g., `amd64`, `386`, `arm`, `arm64` and `ppc64le`).

To support multiple platforms, you may need to define multiple `platforms` in
the plugin manifest. The `selector` field matches to operating systems and
Expand Down

0 comments on commit f9772a9

Please sign in to comment.