not able to get the client-go from k8s -
i have tried possible paths can think of, not able put base examples work kubernetes , go lang. new godeps, gilde, govendor thing, give myself that, have no idea how can package referenced in example file -
"k8s.io/client-go/1.4/kubernetes" "k8s.io/client-go/1.4/pkg/api" "k8s.io/client-go/1.4/tools/clientcmd"
and precise, written here - https://github.com/kubernetes/client-go/tree/release-1.5
how it
you can go get release of client-go, e.g., go k8s.io/client-go/1.4/... or go k8s.io/client-go/1.4/kubernetes.
now when this. output -
warning: "k8s.io/client-go/1.4/..." matched no packages can't load package: package .: no buildable go source files in /users/shubhadeeproychowdhury/projects/go/src
although clones things in directory called k8s under src in gopath.
finally in same link talking dependency management , things, refer directory 1.4 under client-do directory. can not see directory anywhere in cloned k8s directory.
i have been trying install basic packages , run example codes 2 days now, can't. feel awkward , strange. can 1 please me clear step step instructions on how started?
note - 1: have several other go projects , have not used dependency management far. not want mess other projects in order try install , use one. sure there way.
note - 2: have found link - samples on kubernetes golang client not explain me how on primary hurdle in go workspace , run example code.
kubernetes people, if listening, please little bit more elaborate in documentation if possible. happy lend hand in that, not know how take frist step @ point of time.
please help
i had same issue myself. needed go k8s.io/client-go/1.4/kubernetes
, go. fails with:
package k8s.io/client-go/1.4/kubernetes: cannot find package "k8s.io/client-go/1.4/kubernetes" in of:
while documentation mentions use of package management tools did not want use them there vendor directory go itself. able resolve issue doing this:
- create
vendor
directory in project root. - in vendor directory create
k8s.io
directory. fix references library itself. - in
k8s.io
directorygit clone https://github.com/kubernetes/client-go.git
- in
client-go
directorygit checkout v1.5.0
(or version want). checkout important v1.4/v1.5 in specific commits. master example no longer have these. - in project import
k8s.io/client-go/1.5/kubernetes
Comments
Post a Comment