openshift/origin — pull request #500 by smarterclayton (2014-11-30 23:05:54+00:00)
Title: Add a Status field on ImageRepository

When clients want to use internal ImageRepositories (an ImageRepository that
is backed by an OpenShift registry that can be automatically created on demand
when a user pushes or pulls to it) a client needs to be able to know what registry
URL that is in order to push images.

This pull adds a Status struct to an ImageRepository (as defined upstream) that
conveys the *real* DockerImageRepository name (vs the value set on creation or update
by a consumer). It is populated by an ENV var set when OpenShift starts, but in the
future may be a special service in the default namespace.

When a client requests an ImageRepository, the "status.dockerImageRepository" will
be set to "dockerImageRepository" or to the value of `//`.
A properly configured default registry would know how to lookup `/`
when pulling the image.

@ncdc review