According to the page here, kubetest should be installed with the following go command:
go get -u k8s.io/test-infra/kubetest
I've done that and tried running kubetest
but it appears that it was not installed.
$ kubetest
kubetest: command not found
Is this not the correct way of installing it? Or is there anything extra that needs to be done? If so, why is it not mentioned in the readme?
edit:
here is my go version:
$ go version
go version go1.13.4 linux/amd64
edit:
Here is a partial output from my install command:
$ go get -v -u k8s.io/test-infra/kubetest
get "k8s.io/test-infra/kubetest": found meta tag get.metaImport{Prefix:"k8s.io/test-infra", VCS:"git", RepoRoot:"https://github.com/kubernetes/test-infra"} at //k8s.io/test-infra/kubetest?go-get=1
get "k8s.io/test-infra/kubetest": verifying non-authoritative meta tag
k8s.io/test-infra (download)
github.com/Azure/azure-sdk-for-go (download)
github.com/Azure/go-autorest (download)
github.com/dgrijalva/jwt-go (download)
...
k8s.io/api/settings/v1alpha1
k8s.io/api/storage/v1
k8s.io/api/storage/v1alpha1
k8s.io/api/storage/v1beta1
k8s.io/client-go/tools/reference
k8s.io/client-go/kubernetes/scheme
go get
by default places projects in the directory defined as your $GOPATH
, which by default is $HOME/go
. Binaries are by default placed in $GOPATH/bin
. Ensure that GOPATH/bin
is added to your $PATH
variable, otherwise you are unable to use binaries fetched using go get
.