-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass custom kubectl binary #33
Comments
In Is Does the Bazel downloaded |
In rules_k8s, it is possible to override the load("@io_bazel_rules_k8s//toolchains/kubectl:kubectl_configure.bzl", "kubectl_configure")
kubectl_configure(
name = "k8s_config",
kubectl_path = "@myrepo//my:kubectl",
) This has the advantage for easy swapping of the Actually, I was wrong, it's not Here is our wrapper: #!/bin/bash
set -eu
use_tty=""
if tty -s; then
use_tty="-t"
fi
docker exec -i ${use_tty} k3s kubectl "${@}" The added advantage over a downloaded That said, it is of course incompatible with deploying on a remote node. Finally, we used to extract of the |
Description of the problem / feature request:
Pass custom
kubectl
binary tok8s_deploy
commands.Feature requests: what underlying problem are you trying to solve with this feature?
We use k3s in Docker for development, and up until now we wrapped
kubectl
withdocker run k3s kubectl
, since thek3s
image ships in the container.What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?I'm thinking of adding a
kubectl
option tok8s_deploy
, but I saw a bunch of stuff related to customkubectl
binaries so I'm not sure.The text was updated successfully, but these errors were encountered: