DEV Community

Waldemar Quevedo
Waldemar Quevedo

Posted on

Using go modules in K8S projects

Starting to adopt go mod more and more in the projects I maintain instead of other tools, but for some reason I keep hitting into the following issue: https://github.com/kubernetes/client-go/issues/551

Some solutions are written into that issue and more notes added to client-go, but so far what seems to work for me is the following Β―_(ツ)_/Β―

module github.com/wallyqs/my-k8s-module

go 1.12

require (
    k8s.io/api kubernetes-1.13.4
    k8s.io/apimachinery kubernetes-1.13.4
    k8s.io/client-go v10.0.0
    k8s.io/kubernetes v1.13.4
)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)