<p>I'm trying to connect to my local Kubernetes cluster hosted on <code>minikube</code>, <a href="https://gist.github.com/rajatsing/af7dddfabd3087e72998a3b3be935f7b" rel="noreferrer">here's the code for the same</a>, now when I do <code>go run minikube.go</code>, it gives me an error saying:</p>
<pre><code>../../../pkg/mod/k8s.io/client-go@v11.0.0+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`.
</code></pre>
<p>Now, I tried to manually install the package using <code>go get</code> then I found out that this package does not exist.
How can I make it work and fix this?.
My <a href="https://gist.github.com/rajatsing/c728c6a53e91d1f75d4bb3cdd97f4bae" rel="noreferrer">go.mod file</a> in case anyone wants to see that.</p>

Rajat Singh
<p>Always specify matching versions of all three k8s.io/... components in your <code>go.mod</code> file</p>
<pre><code>require (
    ...
    k8s.io/api v0.19.0
    k8s.io/apimachinery v0.19.0
    k8s.io/client-go v0.19.0
    ...
)
</code></pre>
