使用go mod做管理包依赖还是很方便的,在使用client-go时我们也可以使用
安装文档:
https://github.com/kubernetes/client-go/blob/master/INSTALL.md
go mod error:1
../../go/pkg/mod/k8s.io/client-go@v11.0.0+incompatible/rest/request.go:598:31: not enough arguments in call to watch.NewStreamWatcher have (*versioned.Decoder) want (watch.Decoder, watch.Reporter)
修改go.mod
1 | require ( |