Error message:
E:\github\client-go>go mod tidy
go: finding module for package k8s.io/client-go/kubernetes
go: finding module for package k8s.io/client-go/tools/clientcmd
go: finding module for package k8s.io/apimachinery/pkg/apis/meta/v1
go: found k8s.io/apimachinery/pkg/apis/meta/v1 in k8s.io/apimachinery v0.22.2
go: finding module for package k8s.io/client-go/kubernetes
go: finding module for package k8s.io/client-go/tools/clientcmd
client-go imports
k8s.io/client-go/kubernetes: module k8s.io/client-go@latest found (v1.5.2), but does not contain package k8s.io/client-go/kubernetes
client-go imports
k8s.io/client-go/tools/clientcmd: module k8s.io/client-go@latest found (v1.5.2), but does not contain package k8s.io/client-go/tools/clientcmd
Solution:
always specify three files in the go.mod file
require (
...
k8s.io/api v0.19.0
k8s.io/apimachinery v0.19.0
k8s.io/client-go v0.19.0
...
)
Read More:
- How to Solve creating bean with name ‘mappingjackson2httpmessageconverter’ error when elasticsearch advanced client starts‘
- [Solved] Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050
- Kubernetes Error: Error in configuration: unable to read client-cert* unable to read client-key*
- [Solved] Fabric Start Network Error: Error: error getting endorser client for channel: endorser client failed to connect to
- VScode: How to Solve golong plug-in install Error
- How to Solve bootstrap.sh error during the construction of fabric environment
- How to Solve Keras calls plot_model error
- ads: How to Solve designguide Cannot to Open Error
- How to Solve Import antd Error: Module build failed
- How to Solve screenfull plug-in Error (Version Issues)
- How to Solve Project Upgrade to flutter2.5.0 Error
- Android 10: How to Solve Systemui Error
- How to Solve DVA switches history to browserhistory Error
- How to Solve spark Writes Files to odps Error
- How to Solve Error: Module did not self-register
- How to Solve Valgrind 3.14 error on ARM 64
- How to Solve kubelet starts error (k8s Cluster Restarted)
- Apple M1: How to Solve Spark runs Error
- How to Solve ceph-deploy Error (Three Errors)
- How to Solve Kotlin unresolved reference error