Skip to content

Commit

Permalink
Better help messaging for kubebuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittrock committed Mar 19, 2018
1 parent dad9a7c commit 0b7f8e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/kubebuilder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,15 @@ Typical project lifecycle:
kubebuilder create resource --group <group> --version <version> --kind <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 <your-project-go-package>/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/<resource>.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
Expand Down

0 comments on commit 0b7f8e9

Please sign in to comment.