container-common-scripts icon indicating copy to clipboard operation
container-common-scripts copied to clipboard

Add function to show tags overview in the imagestreams

Open hhorak opened this issue 3 years ago • 2 comments

It's supposed to be used as simple as this:

ct_os_show_all_image_stream_tags imagestreams/*json
Tags in the image stream imagestreams/postgresql-centos.json:
- latest -> 12-el8
- 13-el7 -> quay.io/centos7/postgresql-13-centos7:latest
- 12-el8 -> docker.io/centos/postgresql-12-centos8:latest
- 12-el7 -> quay.io/centos7/postgresql-12-centos7:latest
- 12 -> quay.io/centos7/postgresql-12-centos7:latest
- 10-el8 -> docker.io/centos/postgresql-10-centos8:latest
- 10-el7 -> quay.io/centos7/postgresql-10-centos7:latest
- 10 -> quay.io/centos7/postgresql-10-centos7:latest
Tags in the image stream imagestreams/postgresql-rhel-aarch64.json:
- latest -> 13-el8
- 13-el8 -> registry.redhat.io/rhel8/postgresql-13:latest
- 12-el8 -> registry.redhat.io/rhel8/postgresql-12:latest
- 10-el8 -> registry.redhat.io/rhel8/postgresql-10:latest
Tags in the image stream imagestreams/postgresql-rhel.json:
- latest -> 13-el8
- 13-el8 -> registry.redhat.io/rhel8/postgresql-13:latest
- 13-el7 -> registry.redhat.io/rhscl/postgresql-13-rhel7:latest
- 12-el8 -> registry.redhat.io/rhel8/postgresql-12:latest
- 12-el7 -> registry.redhat.io/rhscl/postgresql-12-rhel7:latest
- 12 -> registry.redhat.io/rhscl/postgresql-12-rhel7:latest
- 10-el8 -> registry.redhat.io/rhel8/postgresql-10:latest
- 10-el7 -> registry.redhat.io/rhscl/postgresql-10-rhel7:latest
- 10 -> registry.redhat.io/rhscl/postgresql-10-rhel7:latest

hhorak avatar May 27 '22 19:05 hhorak

@hhorak The pull request is fine, but why do we need to show all imagestreams? Do you have any use-case? E.g. There are missing versions that are currently supported.

What about adding this functionality directly into https://github.com/sclorg/container-common-scripts/blob/master/check_imagestreams.py. I guess this print will be used only in the case of [test-openshift] or [test-all] use case.

phracek avatar May 31 '22 11:05 phracek

What about adding this functionality directly into https://github.com/sclorg/container-common-scripts/blob/master/check_imagestreams.py. I guess this print will be used only in the case of [test-openshift] or [test-all] use case.

Good idea, I forgot we have a script for this already. Being it python, it also solves the problem with jq dependency.

hhorak avatar Jul 01 '22 08:07 hhorak

This pull request is replaced by https://github.com/sclorg/container-common-scripts/pull/372

phracek avatar May 27 '24 14:05 phracek

Closing. It was implemented by #372

phracek avatar Jun 03 '24 08:06 phracek