<p>How do I solve this problem?</p>
<pre><code>$ go mod init
$ go get k8s.io/kubernetes@v1.15.5
go: k8s.io/kubernetes@v1.15.5 requires
        k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0
</code></pre>
<p>Environment is:<br>
<code>go 1.13</code><br />
<code>ubuntu 16.04</code></p>

nene
<p>Go to version go1.16.7 linux/amd64.</p>
<p>This issue occurs because the dependency for kubernetes requires k8s.io/api v0.0.0 which is not present- <a href="https://github.com/kubernetes/kubernetes/blob/ddc4ed03657d6c8c009a5d915265d00cadcb634c/go.mod#L155" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/blob/ddc4ed03657d6c8c009a5d915265d00cadcb634c/go.mod#L155</a></p>
<p>So we have to find the specific versions for what we require
This dependency list fixed issue for me.</p>
<pre><code>require github.com/GoogleCloudPlatform/spark-on-k8s-operator v0.0.0-20210902044020-c6c97a176521

replace (
    k8s.io/api =&gt; k8s.io/api v0.19.6
    k8s.io/apiextensions-apiserver =&gt; k8s.io/apiextensions-apiserver v0.19.6
    k8s.io/apimachinery =&gt; k8s.io/apimachinery v0.19.6
    k8s.io/apiserver =&gt; k8s.io/apiserver v0.19.6
    k8s.io/cli-runtime =&gt; k8s.io/cli-runtime v0.19.6
    k8s.io/client-go =&gt; k8s.io/client-go v0.19.6
    k8s.io/cloud-provider =&gt; k8s.io/cloud-provider v0.19.6
    k8s.io/cluster-bootstrap =&gt; k8s.io/cluster-bootstrap v0.19.6
    k8s.io/code-generator =&gt; k8s.io/code-generator v0.19.6
    k8s.io/component-base =&gt; k8s.io/component-base v0.19.6
    k8s.io/cri-api =&gt; k8s.io/cri-api v0.19.6
    k8s.io/csi-translation-lib =&gt; k8s.io/csi-translation-lib v0.19.6
    k8s.io/kube-aggregator =&gt; k8s.io/kube-aggregator v0.19.6
    k8s.io/kube-controller-manager =&gt; k8s.io/kube-controller-manager v0.19.6
    k8s.io/kube-proxy =&gt; k8s.io/kube-proxy v0.19.6
    k8s.io/kube-scheduler =&gt; k8s.io/kube-scheduler v0.19.6
    k8s.io/kubectl =&gt; k8s.io/kubectl v0.19.6
    k8s.io/kubelet =&gt; k8s.io/kubelet v0.19.6
    k8s.io/legacy-cloud-providers =&gt; k8s.io/legacy-cloud-providers v0.19.6
    k8s.io/metrics =&gt; k8s.io/metrics v0.19.6
    k8s.io/sample-apiserver =&gt; k8s.io/sample-apiserver v0.19.6
)
</code></pre>
