From 0b7f8e96f4adfc9822e997b79c73ec0a6ac50f82 Mon Sep 17 00:00:00 2001 From: Phillip Wittrock Date: Mon, 19 Mar 2018 11:40:36 -0700 Subject: [PATCH] Better help messaging for kubebuilder --- cmd/kubebuilder/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/kubebuilder/main.go b/cmd/kubebuilder/main.go index 008d4f8c41c..c72fb19a785 100644 --- a/cmd/kubebuilder/main.go +++ b/cmd/kubebuilder/main.go @@ -81,11 +81,15 @@ Typical project lifecycle: kubebuilder create resource --group --version --kind -- run the controller locally, installing APIs into the cluster if they are missing: +- run the controller as a local process (e.g. not in a container), installing APIs into the cluster if they are missing: GOBIN=$(pwd)/bin go install /cmd/controller-manager bin/controller-manager --kubeconfig ~/.kube/config + # In another terminal create a new instance of your resource and watch the controller-manager output + kubectl apply -f hack/sample/.yaml + + - build a docker container to install the API and controller into a namespace with RBAC configured: Note: You may need to give yourself admin privs in order to install the RBAC rules