Add GetReference()

You can start the apiserver today under any arbitrary path (http://foo.com/kubernetes/api).


> On Sep 29, 2014, at 5:56 PM, Tim Hockin <notifications@github.com> wrote:
> 
> In pkg/api/ref.go:
> 
> > +distributed under the License is distributed on an "AS IS" BASIS,
> > +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> > +See the License for the specific language governing permissions and
> > +limitations under the License.
> > +*/
> > +
> > +package api
> > +
> > +import (
> > +	"fmt"
> > +	"regexp"
> > +
> > +	"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
> > +)
> > +
> > +var versionFromSelfLink = regexp.MustCompile("/api/([^/]*)/")
> What does flexible path prefix mean?
> …
> —
> Reply to this email directly or view it on GitHub.