Writing an openshift extension
<p>Trying to understand how one builds a tool consuming the Openshift Origin and Kubernetes APIs (I'm new to Go). It seems that I have a version of Kubernetes installed from Openshift and another version installed by <code>godep</code> and I'm getting all sorts of exciting version mismatches.</p>

<p>Here's my code so far:</p>

<pre><code>package main

import (
    kclient "k8s.io/kubernetes/pkg/client/unversioned"
    client "github.com/openshift/origin/pkg/client"
)

func main() {
    config := kclient.Config{
        Host: "...",
    }

    client.SetOpenShiftDefaults(&amp;config)
    client := client.NewOrDie(&amp;config)
}
</code></pre>

<p>I then did a <code>go get github.com/openshift/origin</code> which I can see has a copy of Kubernetes in it's <code>Godeps/_workspace/src</code> directory.</p>

<p>However when I do a <code>godep save</code> I get:</p>

<pre><code>godep: Package (k8s.io/kubernetes/pkg/client/unversioned) not found
</code></pre>

<p>If I do a <code>go get</code> to install Kubernetes I get a version that doesn't match with the version used by Openshift. What's the correct way to do this?</p>