[minor] Support AI Service upgrade functionality #120
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduce new upgrade pipeline - aiservice-upgrade
Add some utility functions for Ai Service Instance and Channels.
Related Issues:
ibm-mas/cli#1799
ibm-mas/ansible-devops#1942
Tests:
[ibmmas/cli:15.6.2-pre.aisvc-upgrade]mascli$` mas aiservice-upgrade --dev-mode
IBM Maximo Application Suite Admin CLI v15.6.2-pre.aisvc-upgrade
Powered by https://github.com/ibm-mas/ansible-devops/ and https://tekton.dev/
Already connected to OCP Cluster:
https://console-openshift-console.apps.o1-945291.cp.fyre.ibm.com/
Proceed with this cluster? [y/n] y
Select a AI Service instance to upgrade from the list below:
Enter AI Service instance ID: apmdevops
Custom channel 9.2.x
AI Service Instance ID ..................... apmdevops
Current AI Service Channel ............. 9.1.x
Next AI Service Channel ................ 9.2.x
Skip Pre-Upgrade Checks ......... False
Proceed with these settings? [y/n] y
✅️ OpenShift Pipelines Operator is installed and ready to use
✅️ Namespace is ready (aiservice-apmdevops-pipelines)
✅️ Latest Tekton definitions are installed (v15.6.2-pre.aisvc-upgrade)
✅️ PipelineRun for apmdevops upgrade submitted
View progress:
https://console-openshift-console.apps.o1-945291.cp.fyre.ibm.com/k8s/ns/aiservice-apmdevops-pipelines/tekton.dev~v1beta1~PipelineRun/apmdevops-upgrade-250930-1753
[ibmmas/cli:15.6.2-pre.aisvc-upgrade]mascli$