Skip to content

[patch] Show supported ibm-operator-catalog versions in CLI startup screen (#2641) - #2662

Draft
Alfishan wants to merge 2 commits into
masterfrom
2641-startup-screen-catalog-versions
Draft

Alfishan wants to merge 2 commits into
masterfrom
2641-startup-screen-catalog-versions

Conversation

@Alfishan

@Alfishan Alfishan commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Implements #2641 — shows supported ibm-operator-catalog versions automatically on container login.

Jira issue

https://jsw.ibm.com/browse/MASCORE-20980

Previously users had no way to know which catalog versions the CLI supported without reading source code.

Changes

image/cli/app-root/src/.bashrc

  • Added a grep/sed/sort/uniq pipeline that reads supportedCatalogs directly from the installed Python package at container startup
  • Arch-agnostic — strips the -<arch> suffix and deduplicates so output is identical regardless of host platform (uname -i returns unknown inside Docker, which broke the original arch-filtered approach)
  • Fails silently if the file is missing (|| true guard)

python/tests/unit/install/test_install_catalogs.py (new file)

  • 27 unit tests across 4 test classes covering: supportedCatalogs structure, version string format, .bashrc grep/sed pipeline compatibility, and catalog subcommand output logic

Testing

Tested against quay.io/ibmmas/cli:23.17.1-pre.2641-startup-screen-catalog-versions:

IIBM Maximo Application Suite CLI Container v23.17.1-pre.2641-startup-screen-catalog-versions
---
Supported ibm-operator-catalog versions:
  - v9-261007
  - v9-260924
  - v9-260827
  - v9-260730
---

https://github.com/ibm-mas/ansible-devops
https://github.com/ibm-mas/cli

MAS Management:
  - mas install to install a new MAS instance
  - mas update to apply a new catalog update
  - mas upgrade to upgrade an existing MAS install to a new release
  - mas must-gather to perform must-gather against the target cluster
  - mas uninstall to uninstall a MAS instance
  - mas backup to backup a MAS instance
  - mas restore to restore a MAS instance
  - mas configtool-oidc to configure OIDC integration
Disconnected Install Support:
  - mas setup-registry to setup a private container registry on an OCP cluster
  - mas teardown-registry to delete a private container registry on an OCP cluster
  - mas mirror-images to mirror container images required by MAS to a private registry
  - mas configure-airgap to configure a cluster to use a private registry as a mirror
OpenShift Cluster Management:
  - mas provision-aws to provision an OCP cluster on AWS
  - mas provision-roks to provision an OCP cluster on IBMCloud Red Hat OpenShift Service (ROKS)
  - mas provision-rosa to provision an OCP cluster on AWS Red Hat OpenShift Service (ROSA)
  - mas provision-fyre to provision an OCP cluster on IBM DevIT Fyre (internal)
  - mas setup-rbac to setup RBAC resources for MAS installation in a cluster
  - mas pre-install to set up pre-install RBAC for MAS installation in a cluster
AI Service (Standalone) Management:
  - mas aiservice-install to install a new AI Service instance
  - mas aiservice-upgrade to upgrade a existing AI Service instance
  - mas aiservice-mirror-images to mirror container images required by AIService to a private registry
  - mas aiservice-configure-airgap to configure a cluster to use a private registry as a mirror for AIService
Gitops based Management:
  - mas gitops to show all gitops related sub-commands

Unit tests

27 passed in 0.06s

Closes #2641

@Alfishan Alfishan added Enhancement New feature or request Serviceability labels Oct 23, 2026
@Alfishan Alfishan added the Do not merge Don't merge this PR yet label Oct 23, 2026
@Alfishan Alfishan self-assigned this Oct 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do not merge Don't merge this PR yet Enhancement New feature or request Serviceability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add supported IBM operator catalog versions in CLI startup screen

1 participant