diff --git a/Makefile b/Makefile index ba11869f5ad..03a5331398b 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ NON_VENDOR_DIRS = $(shell $(DOCKER_CMD) glide nv) build: .init .generate_files \ $(BINDIR)/apiserver \ $(BINDIR)/controller-manager \ - $(BINDIR)/user-broker + $(BINDIR)/user-broker \ plugins user-broker: $(BINDIR)/user-broker diff --git a/plugin/cmd/kubectl/utils/utils.go b/plugin/cmd/kubectl/utils/utils.go index 693ce29336a..d1a3988a4b8 100644 --- a/plugin/cmd/kubectl/utils/utils.go +++ b/plugin/cmd/kubectl/utils/utils.go @@ -40,6 +40,10 @@ func CheckNamespaceExists(name string) error { proxyURL := "http://127.0.0.1" proxyPort := "8881" + // TODO: use the KUBECTL_PLUGINS_CALLER env var, which will + // give you the full path to the kubectl binary. + // + // https://github.com/kubernetes-incubator/service-catalog/pull/840/files#r120732815 kubeProxy := exec.Command("kubectl", "proxy", "-p", proxyPort) defer func() { if err := kubeProxy.Process.Kill(); err != nil {