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
selfLink returned from ImageStreamImage and ImageStreamTag calls is not a valid link #1701
changed the title [-]selfLink returned from ImageStreamImage calls is not a valid link[/-][+]selfLink returned from ImageStreamImage and ImageStreamTag calls is not a valid link[/+]on Apr 10, 2015
Is this acceptable for ImageStreamTag? Note that it still returns what is actually an Image, but the kind is ImageStreamTag, and the metadata has name=busybox:latest and selfLink=/osapi/v1beta1/imageStreamTags/busybox:latest?namespace=p1. The contents of the image may change over time, but the name and selfLink will always stay the same.
Yeah that is what I would expect for ImageStreamTag. ImageStreamImage I
would not expect to change since it should be pointing to a specific image.
On 04/13/2015 10:46 AM, Andy Goldstein wrote:
Is this acceptable for |ImageStreamTag|? Note that it still returns
what is actually an |Image|, but the |kind| is |ImageStreamTag|, and
the metadata has |name=busybox:latest| and
|selfLink=/osapi/v1beta1/imageStreamTags/busybox:latest?namespace=p1|.
The contents of the image may change over time, but the |name| and
|selfLink| will always stay the same.
Activity
[-]selfLink returned from ImageStreamImage calls is not a valid link[/-][+]selfLink returned from ImageStreamImage and ImageStreamTag calls is not a valid link[/+]ncdc commentedon Apr 10, 2015
I think this comes from upstream. After we return the object in question (in this case, an image), I believe control goes to https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/github.com/GoogleCloudPlatform/kubernetes/pkg/apiserver/resthandler.go#L99, where it calls https://github.com/openshift/origin/blob/master/Godeps/_workspace/src/github.com/GoogleCloudPlatform/kubernetes/pkg/apiserver/resthandler.go#L519-L521. I'm not familiar enough with this code at the moment to know if there's a way to override. Maybe instead of returning
imageapi.Imagewe can just returnImageStreamTagorImageStreamImageas appropriate, since they already embedImage. That would probably fix it, as well as makingKindandNamehave the values you'd expect.ncdc commentedon Apr 10, 2015
@smarterclayton thoughts?
smarterclayton commentedon Apr 13, 2015
We should be returning image stream tag and image stream image.
jwforres commentedon Apr 13, 2015
@ncdc how much will this affect the response, other than kind/name?
ncdc commentedon Apr 13, 2015
@jwforres it shouldn't affect it at all; my plan is to set the embedded
Imageto inline the json.ncdc commentedon Apr 13, 2015
Is this acceptable for
ImageStreamTag? Note that it still returns what is actually anImage, but thekindisImageStreamTag, and the metadata hasname=busybox:latestandselfLink=/osapi/v1beta1/imageStreamTags/busybox:latest?namespace=p1. The contents of the image may change over time, but thenameandselfLinkwill always stay the same.jwforres commentedon Apr 13, 2015
Yeah that is what I would expect for ImageStreamTag. ImageStreamImage I
would not expect to change since it should be pointing to a specific image.
On 04/13/2015 10:46 AM, Andy Goldstein wrote:
ncdc commentedon Apr 13, 2015
@jwforres ImageStreamImage will change slightly to correct name and selfLink in a similar manner.
Correct kind, name, selfLink for ISTag, ISImage
Correct kind, name, selfLink for ISTag, ISImage
Correct kind, name, selfLink for ISTag, ISImage
Correct kind, name, selfLink for ISTag, ISImage