<p>I am using <a href="https://github.com/kubernetes-sigs/kubebuilder" rel="nofollow noreferrer">kubebuilder</a> to create kubernetes operator project. After running the project init command described in <a href="https://book.kubebuilder.io/quick_start.html" rel="nofollow noreferrer">quickstart guide</a></p>

<pre><code>kubebuilder init --domain k8s.io --license apache2 --owner "The Kubernetes Authors"
</code></pre>

<p><code>dep ensure</code> returns with error log given below.</p>

<pre><code>Solving failure: No versions of k8s.io/client-go met constraints:
    v8.0.0: Could not introduce k8s.io/client-go@v8.0.0, as it is not allowed by constraints from the following projects:
    kubernetes-1.10.1 from (root)
    kubernetes-1.10.1 from sigs.k8s.io/controller-runtime@master

    v7.0.0: Could not introduce k8s.io/client-go@v7.0.0, as it is not allowed by constraints from the following projects:
    kubernetes-1.10.1 from (root)
    kubernetes-1.10.1 from sigs.k8s.io/controller-runtime@master

    v6.0.0: Could not introduce k8s.io/client-go@v6.0.0, as it is not allowed by constraints from the following projects:
    kubernetes-1.10.1 from (root)
    kubernetes-1.10.1 from sigs.k8s.io/controller-runtime@master
</code></pre>

<p>Try using the latest <code>kubebuilder</code> from <a href="https://github.com/kubernetes-sigs/kubebuilder/releases" rel="nofollow noreferrer">here</a>.  It's likely that the dependencies for the version in the quick start are out of date.</p>

<p>It works fine for me with <code>v1.0.3</code></p>

<pre><code>~/go/src/github.com $ kubebuilder init --domain k8s.io --license apache2 --owner "The Kubernetes Authors"
Run `dep ensure` to fetch dependencies (Recommended) [y/n]?
y
dep ensure
Running make...
make
go generate ./pkg/... ./cmd/...
go fmt ./pkg/... ./cmd/...
go vet ./pkg/... ./cmd/...
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all
CRD manifests generated under '/root/go/src/github.com/config/crds'
RBAC manifests generated under '/root/go/src/github.com/config/rbac'
go test ./pkg/... ./cmd/... -coverprofile cover.out
?       github.com/pkg/apis [no test files]
?       github.com/pkg/controller   [no test files]
ok      github.com/pkg/errors   0.207s  coverage: 100.0% of statements
?       github.com/cmd/manager  [no test files]
go build -o bin/manager github.com/cmd/manager
Next: Define a resource with:
$ kubebuilder create api
</code></pre>
