kubernetes / sample-controller

Repository for sample controller. Complements sample-apiserver
Apache License 2.0
3.14k stars 1.08k forks source link

Using golang 1.12+ #56

Closed devdattakulkarni closed 5 years ago

devdattakulkarni commented 5 years ago

If you are using golang 1.12 and up, which supports go modules, you don't need to have the project in your GOPATH.

Here are the steps that you can follow for trying out the project with golang 1.12+

git clone https://github.com/kubernetes/sample-controller.git cd sample-controller/ go mod vendor go build -o sample-controller . ./sample-controller -kubeconfig=$HOME/.kube/config

nikhita commented 5 years ago

@devdattakulkarni Thanks! Closing since it'll be covered in https://github.com/kubernetes/kubernetes/pull/79081

devdattakulkarni commented 5 years ago

@nikhita 👍