You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cleanup items from ImageRepository -> ImageStream change #1577
When there is no spec for the image stream it seems to be both adding the images to the list of images for the "latest" tag, and creating unique tags for the image. See origin-ruby-sample in the gist.
We technically are creating 2 tags with the v1 registry, but if we don't want to see them, I can remove the by-id tag from status.tags. Note, this won't be an issue with the v2 registry.
Sent from my iPhone
On Apr 7, 2015, at 2:09 PM, Jessica Forrester [email protected] wrote:
When there is no spec for the image stream it seems to be both adding the images to the list of images for the "latest" tag, and creating unique tags for the image. See origin-ruby-sample in the gist.
If this is temporary until we have v2 registry then I'm ok either way.
On 04/07/2015 02:19 PM, Andy Goldstein wrote:
This shouldn't be related to spec or no spec.
We technically are creating 2 tags with the v1 registry, but if we
don't want to see them, I can remove the by-id tag from status.tags.
Note, this won't be an issue with the v2 registry.
Sent from my iPhone
On Apr 7, 2015, at 2:09 PM, Jessica Forrester [email protected] wrote:
When there is no spec for the image stream it seems to be both
adding the images to the list of images for the "latest" tag, and
creating unique tags for the image. See origin-ruby-sample in the gist.
When I have an ImageStream like the one below it creates the image record under the tag but the "image" field is set to empty string, is that expected?
Yes, that is expected. With spec.tags, you will only ever see image populated when using from with kind=ImageStreamTag or kind=ImageStreamImage. And even then, it's possible to have a blank image. The rationale behind this is that if you set a spec tag to a dockerImageReference, it's an opaque string to us at that point, and we don't inspect it to try to determine the image id. Maybe if the dockerImageReference points to an image by id (foo/bar@sha256:abcd....) we could set the image field, but otherwise we aren't querying the remote registry on the fly to figure out the image id from the tag.
Only if it comes from an image stream and we know about it. If stream A points at opaque dockerImageReference foo/bar@sha256:..., there's no guarantee that we have any record of that image in OpenShift.
Sent from my iPhone
On Apr 7, 2015, at 2:51 PM, Jessica Forrester [email protected] wrote:
Sorry meant to say imageStreamImage/@
—
Reply to this email directly or view it on GitHub.
Activity
jwforres commentedon Apr 7, 2015
When there is no spec for the image stream it seems to be both adding the images to the list of images for the "latest" tag, and creating unique tags for the image. See origin-ruby-sample in the gist.
https://gist.github.com/jwforres/a28ac9893894465f4247
Can be recreated by creating from examples/sample-app/application-template-stibuild.json and running a few builds
ncdc commentedon Apr 7, 2015
This shouldn't be related to spec or no spec.
We technically are creating 2 tags with the v1 registry, but if we don't want to see them, I can remove the by-id tag from status.tags. Note, this won't be an issue with the v2 registry.
Sent from my iPhone
jwforres commentedon Apr 7, 2015
If this is temporary until we have v2 registry then I'm ok either way.
On 04/07/2015 02:19 PM, Andy Goldstein wrote:
jwforres commentedon Apr 7, 2015
When I have an ImageStream like the one below it creates the image record under the tag but the "image" field is set to empty string, is that expected?
ImageStream in the template:
ImageStream returned from api:
ncdc commentedon Apr 7, 2015
Yes, that is expected. With
spec.tags, you will only ever seeimagepopulated when usingfromwithkind=ImageStreamTagorkind=ImageStreamImage. And even then, it's possible to have a blank image. The rationale behind this is that if you set a spec tag to a dockerImageReference, it's an opaque string to us at that point, and we don't inspect it to try to determine the image id. Maybe if the dockerImageReference points to an image by id (foo/bar@sha256:abcd....) we could set the image field, but otherwise we aren't querying the remote registry on the fly to figure out the image id from the tag.jwforres commentedon Apr 7, 2015
In that case if I want to get more info on the image (like if i wanted to look at the ENV), is it imageStreamImage@ or can I not get more details?
jwforres commentedon Apr 7, 2015
Sorry meant to say imageStreamImage/@
ncdc commentedon Apr 7, 2015
Only if it comes from an image stream and we know about it. If stream A points at opaque dockerImageReference foo/bar@sha256:..., there's no guarantee that we have any record of that image in OpenShift.
Sent from my iPhone
danmcp commentedon May 11, 2015
@ncdc What's left here?
ncdc commentedon May 18, 2015
@danmcp I believe we can close this
Squashed 'cmd/service-catalog/go/src/github.com/kubernetes-incubator/…