Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Add kubectl toolchain for linux arm64 (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengye87 authored Apr 30, 2021
1 parent faa17f2 commit ab522ec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions k8s/k8s.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ py_library(
# note these work with the autoconfigured toolchain
native.register_toolchains(
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_linux_amd64_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_linux_arm64_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_linux_s390x_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_osx_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_windows_toolchain",
Expand Down
10 changes: 10 additions & 0 deletions toolchains/kubectl/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ toolchain(
toolchain_type = ":toolchain_type",
)

toolchain(
name = "kubectl_linux_arm64_toolchain",
target_compatible_with = [
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:aarch64",
],
toolchain = "@k8s_config//:toolchain",
toolchain_type = ":toolchain_type",
)

toolchain(
name = "kubectl_osx_toolchain",
target_compatible_with = [
Expand Down
1 change: 1 addition & 0 deletions toolchains/kubectl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ Register the toolchains exported by this repository in your WORKSPACE and add a
```python
register_toolchains(
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_linux_amd64_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_linux_arm64_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_linux_s390x_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_osx_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_windows_toolchain",
Expand Down

0 comments on commit ab522ec

Please sign in to comment.