Add GetReference()

What does flexible path prefix mean?

On Mon, Sep 29, 2014 at 10:09 AM, Dawn Chen <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/([^/]*)/")
>
> Good catch! Let me file an issue to disallow flexible path prefixes or
> have another way to retrieve version info. Thanks.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1475/files#r18167889>
> .
>