Skip to content

Unable to look up dockerImageLayers information for all ImageStreamTag objects at once #23869

@bsquizz

Description

@bsquizz

Is there a more efficient way to obtain the dockerImageLayers for all images? Currently with oc get istag --all the dockerImageLayers info is omitted. I get the same result when listing all ImageStreamTags via the REST API as well. Is there a flag I can pass to have the imageLayer data returned in a v1.ImageStreamTagList?

$ oc version
oc v3.11.43
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server <snip>
openshift v3.11.43
kubernetes v1.11.0+d4cacc0
Steps To Reproduce

oc get istag --all -o yaml

Current Result

Output contains no dockerImageLayers info, it is set to 'null':

apiVersion: v1
items:
- apiVersion: image.openshift.io/v1
  generation: 20
  image:
    dockerImageLayers: null
Expected Result

I'd like to have a way to get the dockerImageLayers for all tags at once. Currently what I have to do is:

  1. get the list of istags
  2. get data for each one individually to then look up the image layer info

This is really time consuming because we have ~300 images

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions