Using go modules in K8S projects

twitter logo github logo ・1 min read

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
)
twitter logo DISCUSS
Classic DEV Post from Aug 6

What to put in your portfolio as a beginner web dev

Waldemar Quevedo profile image
Working at Synadia Communications on NATS. Interested in Distributed Systems, Web Operations, Emacs / Org Mode. Author of Practical NATS: https://www.apress.com/us/book/9781484235690

Customize your DEV feed to keep up with the technologies you care about.

Get Started