I'm trying to connect to my local Kubernetes cluster hosted on minikube
, here's the code for the same, now when I do go run minikube.go
, it gives me an error saying:
../../../pkg/mod/k8s.io/[email protected]+incompatible/kubernetes/scheme/register.go:26:2: module k8s.io/api@latest found (v0.19.0), but does not contain package k8s.io/api/auditregistration/v1alpha1`.
Now, I tried to manually install the package using go get
then I found out that this package does not exist.
How can I make it work and fix this?.
My go.mod file in case anyone wants to see that.
go mod download
– Tippets