<p>I have the dependency in my go.mod file like below:</p>
<pre><code>    require ( 
       ...
       k8s.io/client-go v0.23.1
    )
</code></pre>
<p>I deleted the entire vendor folder and tried updating the dependencies like this:</p>
<pre><code>    go mod tidy 
    go mod vendor
</code></pre>
<p>But still fake is not present as can be seen from the pic below:</p>
<p><a href="https://i.stack.imgur.com/meypE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/meypE.png" alt="Vendor content of k8s.io" /></a></p>
<p>Also from here i can see that the 'fake' pkg is present - <a href="https://github.com/kubernetes/client-go/tree/master/kubernetes" rel="nofollow noreferrer">https://github.com/kubernetes/client-go/tree/master/kubernetes</a></p>

Калоян Ников
<p>just add a blank import statement like:</p>
<pre><code>import (
    _ &quot;k8s.io/client-go/kubernetes/fake&quot;

    &quot;k8s.io/client-go/discovery&quot;
)
</code></pre>
<p>and execute the command</p>
<pre><code>go mod vendor
</code></pre>
<p>and you will see the expected folder</p>
<pre><code>&gt;ls vendor/k8s.io/client-go/kubernetes/
clientset.go doc.go       fake         import.go    scheme       typed
</code></pre>
