Skip to content

Commit

Permalink
cherry-pick m1 update
Browse files Browse the repository at this point in the history
remove line

remove osx
  • Loading branch information
AugustKarlstedt committed Apr 12, 2022
1 parent 1b9765a commit a38cedd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion k8s/k8s.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ py_library(
native.register_toolchains(
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_linux_amd64_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_osx_amd64_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_osx_arm64_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_windows_toolchain",
)
if "io_bazel_rules_go" not in excludes:
Expand Down
12 changes: 11 additions & 1 deletion toolchains/kubectl/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ toolchain(
)

toolchain(
name = "kubectl_osx_toolchain",
name = "kubectl_osx_amd64_toolchain",
target_compatible_with = [
"@bazel_tools//platforms:osx",
"@bazel_tools//platforms:x86_64",
Expand All @@ -62,6 +62,16 @@ toolchain(
toolchain_type = ":toolchain_type",
)

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

toolchain(
name = "kubectl_windows_toolchain",
target_compatible_with = [
Expand Down
3 changes: 2 additions & 1 deletion toolchains/kubectl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ Register the toolchains exported by this repository in your WORKSPACE and add a
register_toolchains(
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_linux_amd64_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_osx_amd64_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_osx_arm64_toolchain",
"@io_bazel_rules_k8s//toolchains/kubectl:kubectl_windows_toolchain",
)

Expand Down

0 comments on commit a38cedd

Please sign in to comment.