From 9fa0172943f54cc60a2adb48eba6fb82848d3e5b Mon Sep 17 00:00:00 2001 From: Cao Shufeng Date: Fri, 29 Jun 2018 11:44:21 +0800 Subject: [PATCH] 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) ``` Kubernetes-commit: 9bb3bf2e78473ace1cbb85512785c2ba4507bc9b --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c822c42..1bb47157 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,8 @@ This is an example of how to build a kube-like controller with a single type. ```sh # 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 $ kubectl create -f artifacts/examples/crd.yaml