File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,15 @@ Typical project lifecycle:
81
81
82
82
kubebuilder create resource --group <group> --version <version> --kind <Kind>
83
83
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:
85
85
86
86
GOBIN=$(pwd)/bin go install <your-project-go-package>/cmd/controller-manager
87
87
bin/controller-manager --kubeconfig ~/.kube/config
88
88
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
+
89
93
- build a docker container to install the API and controller into a namespace with RBAC configured:
90
94
91
95
Note: You may need to give yourself admin privs in order to install the RBAC rules
You can’t perform that action at this time.
0 commit comments