ibm-mas / ansible-devops

Ansible collection supporting devops for IBM Maximo Application Suite
https://ibm-mas.github.io/ansible-devops/
Eclipse Public License 2.0
49 stars 82 forks source link

[minor] Add repository prefix support for image mirroring #1391

Closed JonahLuckett closed 2 weeks ago

JonahLuckett commented 1 month ago

Overview

For https://github.com/ibm-mas/cli/issues/1049

With this change the user can declare a Registry Prefix that will publish the mirror image created to HOST:PORT/PREFIX/as opposed to HOST:PORT/

There is an accompanying CLI change also but it should be worth note that neither will break the other if not present. Equally if no prefix is given then nothing breaks either.

The prefix is added to a with a -x or a --prefix flag.

Testing

Testing in masdeps2 resulted in succesful pod/mirror creation:

(B Target Registry(B
(B Registry Host ....................... airgap-registry-lb.airgap-registry.svc
(B Registry Port ....................... 5000
(B Registry Prefix ..................... 240625

(B IBM Operator Catalog(B
(B Catalog Version ..................... v9-240625-amd64
(B MAS Update Channel .................. 9.0.x

Screenshot 2024-08-07 at 11 21 37