Commit 9bb3bf2e authored by Cao Shufeng's avatar Cao Shufeng

fix sample-controller README

The guide in doc causes an error ``` $ go run *.go -kubeconfig=$HOME/.kube/config go run: cannot run *_test.go files (controller_test.go) ```
parent f0c89c00
...@@ -42,7 +42,8 @@ This is an example of how to build a kube-like controller with a single type. ...@@ -42,7 +42,8 @@ This is an example of how to build a kube-like controller with a single type.
```sh ```sh
# assumes you have a working kubeconfig, not required if operating in-cluster # assumes you have a working kubeconfig, not required if operating in-cluster
$ go run *.go -kubeconfig=$HOME/.kube/config $ go build -o sample-controller .
$ ./sample-controller -kubeconfig=$HOME/.kube/config
# create a CustomResourceDefinition # create a CustomResourceDefinition
$ kubectl create -f artifacts/examples/crd.yaml $ kubectl create -f artifacts/examples/crd.yaml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment