testbin := "bin" tools := "//hack/tools" # refreshes test/bin directory so other scripts can place tools there mkbindir: rm -rf {{testbin}} mkdir -p {{testbin}} # adds envtest binaries to test/bin so they are available outside of bazel setup-envtest-bin: mkbindir bazel run --config=quiet --script_path={{testbin}}/etcd {{tools}}:etcd bazel run --config=quiet --script_path={{testbin}}/kube-apiserver {{tools}}:kube-apiserver bazel run --config=quiet --script_path={{testbin}}/kubectl {{tools}}:kubectl