Skip to content

Commit 0b7f8e9

Browse files
committed
Better help messaging for kubebuilder
1 parent dad9a7c commit 0b7f8e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/kubebuilder/main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,15 @@ Typical project lifecycle:
8181
8282
kubebuilder create resource --group <group> --version <version> --kind <Kind>
8383
84-
- run the controller locally, installing APIs into the cluster if they are missing:
84+
- run the controller as a local process (e.g. not in a container), installing APIs into the cluster if they are missing:
8585
8686
GOBIN=$(pwd)/bin go install <your-project-go-package>/cmd/controller-manager
8787
bin/controller-manager --kubeconfig ~/.kube/config
8888
89+
# In another terminal create a new instance of your resource and watch the controller-manager output
90+
kubectl apply -f hack/sample/<resource>.yaml
91+
92+
8993
- build a docker container to install the API and controller into a namespace with RBAC configured:
9094
9195
Note: You may need to give yourself admin privs in order to install the RBAC rules

0 commit comments

Comments
 (0)