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
Per #7226 the imagestreamimport REST API endpoint was added in 1.1.2 to allow importing images via the rest API. I've been trying it but it seems that this endpoint only imports the image metadata and tags and does not import actual image content. Per the enterprise version release notes this is called "image pullthrough" and acts as a reference to the private registry.(https://docs.openshift.com/enterprise/3.2/release_notes/ose_3_2_release_notes.html)
Comparing a pushed image with the docker CLI to one imported via the REST API in the UI reveals:
Image pushed with docker CLI:
4.6.8.20160725-084659I pushed bf91b4 an hour ago 172.30.19.120:5000/helloworld-dev/helloworld@sha256:bf91b42f6415d169e3a84df4b9eac1c09e502ff8f72d080f1f10228b89c68b8c
Image pulled with ImageStreamImport Rest API:
4.6.9.20160725-090850I private.registry.com/privatenamespace/helloworld:4.6.9.20160725-090850I 464876 35 minutes ago private.registry.com/privatenamespace/helloworld@sha256:46487662ab2cffc4887db77a77017ea4702b4b1627a59a8b2339b7f226a3bc39
Is it possible to import the image metadata and binary content through the OpenShift REST API? The use case is to always have the image available in the local OpenShift docker registry when deploying or spinning up pods so that it can still be used even if an external registry goes down.
Version
OpenShift Master: v3.2.0.46-1-g3fab54d (based on origin 1.2)
Kubernetes Master: v1.2.0-36-g4a3f9c5
Per #7226 the imagestreamimport REST API endpoint was added in 1.1.2 to allow importing images via the rest API. I've been trying it but it seems that this endpoint only imports the image metadata and tags and does not import actual image content. Per the enterprise version release notes this is called "image pullthrough" and acts as a reference to the private registry.(https://docs.openshift.com/enterprise/3.2/release_notes/ose_3_2_release_notes.html)
Comparing a pushed image with the docker CLI to one imported via the REST API in the UI reveals:
Image pushed with docker CLI:
Image pulled with ImageStreamImport Rest API:
Is it possible to import the image metadata and binary content through the OpenShift REST API? The use case is to always have the image available in the local OpenShift docker registry when deploying or spinning up pods so that it can still be used even if an external registry goes down.
Version
OpenShift Master: v3.2.0.46-1-g3fab54d (based on origin 1.2)
Kubernetes Master: v1.2.0-36-g4a3f9c5
Steps To Reproduce
docker push openshift.internal.registry.com/helloworld-dev/helloworld:4.6.8.20160725- 084659I
Current Result
The image metadata is imported via the rest API. The actual image content and layers are not.
Expected Result
The REST API provides a way to import the image binary content along with the image metadata.
The text was updated successfully, but these errors were encountered: