Updated installation instructions.

– dep is now alpha, not pre-alpha
– Added a link to the correctly versioned samples for use with these instructions.
This commit is contained in:
William Denniss 2017-03-14 13:56:51 -07:00
parent 8147f564df
commit 701d3f42ac

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