Merge pull request #146 from WilliamDenniss/master

Updated installation instructions.
This commit is contained in:
Daniel Smith 2017-03-14 16:17:33 -07:00 committed by GitHub
commit d04a6004ff

View File

@ -29,9 +29,9 @@ for each follows.
### Dep ### Dep
[dep](https://github.com/golang/dep) is an up-and-coming dependency management tool, [dep](https://github.com/golang/dep) is an up-and-coming dependency management tool,
which has the goal of being accepted as part of the standard go toolchain. It which has the goal of being accepted as part of the standard go toolchain. Its
is currently pre-alpha. However, it comes the closest to working easily out of status is currently alpha. However, it comes the closest to working easily out
the box. of the box.
```sh ```sh
$ go get github.com/golang/dep $ go get github.com/golang/dep
@ -43,6 +43,10 @@ $ dep init
$ dep ensure k8s.io/client-go@^2.0.0 $ dep ensure k8s.io/client-go@^2.0.0
``` ```
Then you can try one of the
[examples](https://github.com/kubernetes/client-go/tree/v2.0.0/examples/) from
the 2.0.0 release.
This will set up a `vendor` directory in your current directory, add `k8s.io/client-go` This will set up a `vendor` directory in your current directory, add `k8s.io/client-go`
to it, and flatten all of `k8s.io/client-go`'s dependencies into that vendor directory, to it, and flatten all of `k8s.io/client-go`'s dependencies into that vendor directory,
so that your code and `client-go` will both get the same copy of each so that your code and `client-go` will both get the same copy of each