sclorg / container-common-scripts

Apache License 2.0
20 stars 45 forks source link

Add function to show tags overview in the imagestreams #256

Closed hhorak closed 3 months ago

hhorak commented 2 years ago

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
phracek commented 2 years ago

@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.

hhorak commented 2 years ago

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.

phracek commented 3 months ago

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

phracek commented 3 months ago

Closing. It was implemented by #372