mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-05-01 00:00:03 +08:00
Update the go get to k8s.io/sample-controller
Referring to the issue: https://github.com/kubernetes/sample-controller/issues/20#issuecomment-398716033 Kubernetes-commit: 6d631e32f281949e1b31e65e0cbd203be39a1c6f
This commit is contained in:
committed by
Kubernetes Publisher
parent
2fb0948fde
commit
bef4a2dcb7
@@ -42,6 +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 get k8s.io/sample-controller
|
||||||
|
$ cd $GOPATH/src/k8s.io/sample-controller
|
||||||
$ go build -o sample-controller .
|
$ go build -o sample-controller .
|
||||||
$ ./sample-controller -kubeconfig=$HOME/.kube/config
|
$ ./sample-controller -kubeconfig=$HOME/.kube/config
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user