mas-cli 15.10.1__py3-none-any.whl → 15.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mas-cli might be problematic. Click here for more details.
- mas/cli/__init__.py +1 -1
- mas/cli/aiservice/install/app.py +5 -2
- mas/cli/aiservice/upgrade/__init__.py +11 -0
- mas/cli/aiservice/upgrade/app.py +139 -0
- mas/cli/aiservice/upgrade/argParser.py +69 -0
- mas/cli/cli.py +2 -1
- mas/cli/install/app.py +5 -2
- mas/cli/install/catalogs.py +3 -2
- mas/cli/install/settings/db2Settings.py +7 -5
- mas/cli/templates/ibm-mas-tekton.yaml +546 -197
- mas/cli/uninstall/app.py +5 -2
- mas/cli/update/app.py +11 -6
- mas/cli/upgrade/app.py +6 -2
- mas/cli/validators.py +15 -1
- {mas_cli-15.10.1.data → mas_cli-15.11.0.data}/scripts/mas-cli +4 -0
- {mas_cli-15.10.1.dist-info → mas_cli-15.11.0.dist-info}/METADATA +3 -2
- {mas_cli-15.10.1.dist-info → mas_cli-15.11.0.dist-info}/RECORD +19 -16
- {mas_cli-15.10.1.dist-info → mas_cli-15.11.0.dist-info}/WHEEL +0 -0
- {mas_cli-15.10.1.dist-info → mas_cli-15.11.0.dist-info}/top_level.txt +0 -0
mas/cli/uninstall/app.py
CHANGED
|
@@ -164,8 +164,11 @@ class UninstallApp(BaseApp):
|
|
|
164
164
|
pipelinesNamespace = f"mas-{instanceId}-pipelines"
|
|
165
165
|
|
|
166
166
|
with Halo(text='Validating OpenShift Pipelines installation', spinner=self.spinner) as h:
|
|
167
|
-
installOpenShiftPipelines(self.dynamicClient)
|
|
168
|
-
|
|
167
|
+
if installOpenShiftPipelines(self.dynamicClient):
|
|
168
|
+
h.stop_and_persist(symbol=self.successIcon, text="OpenShift Pipelines Operator is installed and ready to use")
|
|
169
|
+
else:
|
|
170
|
+
h.stop_and_persist(symbol=self.successIcon, text="OpenShift Pipelines Operator installation failed")
|
|
171
|
+
self.fatalError("Installation failed")
|
|
169
172
|
|
|
170
173
|
with Halo(text=f'Preparing namespace ({pipelinesNamespace})', spinner=self.spinner) as h:
|
|
171
174
|
createNamespace(self.dynamicClient, pipelinesNamespace)
|
mas/cli/update/app.py
CHANGED
|
@@ -196,8 +196,11 @@ class UpdateApp(BaseApp):
|
|
|
196
196
|
pipelinesNamespace = "mas-pipelines"
|
|
197
197
|
|
|
198
198
|
with Halo(text='Validating OpenShift Pipelines installation', spinner=self.spinner) as h:
|
|
199
|
-
installOpenShiftPipelines(self.dynamicClient)
|
|
200
|
-
|
|
199
|
+
if installOpenShiftPipelines(self.dynamicClient):
|
|
200
|
+
h.stop_and_persist(symbol=self.successIcon, text="OpenShift Pipelines Operator is installed and ready to use")
|
|
201
|
+
else:
|
|
202
|
+
h.stop_and_persist(symbol=self.successIcon, text="OpenShift Pipelines Operator installation failed")
|
|
203
|
+
self.fatalError("Installation failed")
|
|
201
204
|
|
|
202
205
|
with Halo(text=f'Preparing namespace ({pipelinesNamespace})', spinner=self.spinner) as h:
|
|
203
206
|
createNamespace(self.dynamicClient, pipelinesNamespace)
|
|
@@ -254,13 +257,13 @@ class UpdateApp(BaseApp):
|
|
|
254
257
|
self.printH1("Select IBM Maximo Operator Catalog Version")
|
|
255
258
|
self.printDescription([
|
|
256
259
|
"Select MAS Catalog",
|
|
257
|
-
" 1) Oct
|
|
258
|
-
" 2)
|
|
259
|
-
" 3) Sep
|
|
260
|
+
" 1) Oct 30 2025 Update (MAS 9.1.5, 9.0.16, 8.11.25, & 8.10.30)",
|
|
261
|
+
" 2) Oct 10 2025 Update (MAS 9.1.4, 9.0.15, 8.11.24, & 8.10.29)",
|
|
262
|
+
" 3) Sep 25 2025 Update (MAS 9.1.4, 9.0.15, 8.11.24, & 8.10.29)",
|
|
260
263
|
])
|
|
261
264
|
|
|
262
265
|
catalogOptions = [
|
|
263
|
-
"v9-
|
|
266
|
+
"v9-251030-amd64", "v9-251010-amd64", "v9-250925-amd64",
|
|
264
267
|
]
|
|
265
268
|
self.promptForListSelect("Select catalog version", catalogOptions, "mas_catalog_version", default=1)
|
|
266
269
|
|
|
@@ -381,6 +384,7 @@ class UpdateApp(BaseApp):
|
|
|
381
384
|
"v9-250902-amd64": "7.0.22",
|
|
382
385
|
"v9-250925-amd64": "7.0.23",
|
|
383
386
|
"v9-251010-amd64": "7.0.23",
|
|
387
|
+
"v9-251030-amd64": "7.0.23",
|
|
384
388
|
}
|
|
385
389
|
catalogVersion = self.getParam('mas_catalog_version')
|
|
386
390
|
if catalogVersion in mongoVersions:
|
|
@@ -522,6 +526,7 @@ class UpdateApp(BaseApp):
|
|
|
522
526
|
"v9-250902-amd64": "5.1.3",
|
|
523
527
|
"v9-250925-amd64": "5.1.3",
|
|
524
528
|
"v9-251010-amd64": "5.1.3",
|
|
529
|
+
"v9-251030-amd64": "5.1.3",
|
|
525
530
|
}
|
|
526
531
|
|
|
527
532
|
with Halo(text='Checking for IBM Cloud Pak for Data', spinner=self.spinner) as h:
|
mas/cli/upgrade/app.py
CHANGED
|
@@ -154,8 +154,12 @@ class UpgradeApp(BaseApp, UpgradeSettingsMixin):
|
|
|
154
154
|
pipelinesNamespace = f"mas-{instanceId}-pipelines"
|
|
155
155
|
|
|
156
156
|
with Halo(text='Validating OpenShift Pipelines installation', spinner=self.spinner) as h:
|
|
157
|
-
installOpenShiftPipelines(self.dynamicClient)
|
|
158
|
-
|
|
157
|
+
successfullyInstalledPipelines = installOpenShiftPipelines(self.dynamicClient)
|
|
158
|
+
if successfullyInstalledPipelines:
|
|
159
|
+
h.stop_and_persist(symbol=self.successIcon, text="OpenShift Pipelines Operator is installed and ready to use")
|
|
160
|
+
else:
|
|
161
|
+
h.stop_and_persist(symbol=self.successIcon, text="OpenShift Pipelines Operator installation failed")
|
|
162
|
+
self.fatalError("Installation failed")
|
|
159
163
|
|
|
160
164
|
with Halo(text=f'Preparing namespace ({pipelinesNamespace})', spinner=self.spinner) as h:
|
|
161
165
|
createNamespace(self.dynamicClient, pipelinesNamespace)
|
mas/cli/validators.py
CHANGED
|
@@ -20,7 +20,7 @@ from kubernetes.client import api_client
|
|
|
20
20
|
from prompt_toolkit.validation import Validator, ValidationError
|
|
21
21
|
|
|
22
22
|
from mas.devops.ocp import getStorageClass
|
|
23
|
-
from mas.devops.mas import verifyMasInstance
|
|
23
|
+
from mas.devops.mas import verifyMasInstance, verifyAiServiceInstance
|
|
24
24
|
|
|
25
25
|
import logging
|
|
26
26
|
|
|
@@ -85,6 +85,20 @@ class InstanceIDValidator(Validator):
|
|
|
85
85
|
raise ValidationError(message='Not a valid MAS instance ID on this cluster', cursor_position=len(instanceId))
|
|
86
86
|
|
|
87
87
|
|
|
88
|
+
class AiserviceInstanceIDValidator(Validator):
|
|
89
|
+
def validate(self, document):
|
|
90
|
+
"""
|
|
91
|
+
Validate that a AI Service instance ID exists on the target cluster
|
|
92
|
+
"""
|
|
93
|
+
instanceId = document.text
|
|
94
|
+
|
|
95
|
+
dynClient = dynamic.DynamicClient(
|
|
96
|
+
api_client.ApiClient(configuration=config.load_kube_config())
|
|
97
|
+
)
|
|
98
|
+
if not verifyAiServiceInstance(dynClient, instanceId):
|
|
99
|
+
raise ValidationError(message='Not a valid AI Service instance ID on this cluster', cursor_position=len(instanceId))
|
|
100
|
+
|
|
101
|
+
|
|
88
102
|
class StorageClassValidator(Validator):
|
|
89
103
|
def validate(self, document):
|
|
90
104
|
"""
|
|
@@ -16,6 +16,7 @@ from sys import argv
|
|
|
16
16
|
from mas.cli import __version__ as VERSION
|
|
17
17
|
from mas.cli.install.app import InstallApp
|
|
18
18
|
from mas.cli.aiservice.install.app import AiServiceInstallApp
|
|
19
|
+
from mas.cli.aiservice.upgrade.app import AiServiceUpgradeApp
|
|
19
20
|
from mas.cli.update.app import UpdateApp
|
|
20
21
|
from mas.cli.upgrade.app import UpgradeApp
|
|
21
22
|
from mas.cli.uninstall.app import UninstallApp
|
|
@@ -58,6 +59,9 @@ if __name__ == '__main__':
|
|
|
58
59
|
elif function == "aiservice-install":
|
|
59
60
|
app = AiServiceInstallApp()
|
|
60
61
|
app.install(argv[2:])
|
|
62
|
+
elif function == "aiservice-upgrade":
|
|
63
|
+
app = AiServiceUpgradeApp()
|
|
64
|
+
app.upgrade(argv[2:])
|
|
61
65
|
elif function == "uninstall":
|
|
62
66
|
app = UninstallApp()
|
|
63
67
|
app.uninstall(argv[2:])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mas-cli
|
|
3
|
-
Version: 15.
|
|
3
|
+
Version: 15.11.0
|
|
4
4
|
Summary: Python Admin CLI for Maximo Application Suite
|
|
5
5
|
Home-page: https://github.com/ibm-mas/cli
|
|
6
6
|
Author: David Parker
|
|
@@ -62,7 +62,8 @@ Example
|
|
|
62
62
|
)
|
|
63
63
|
|
|
64
64
|
# Install OpenShift Pipelines Operator
|
|
65
|
-
installOpenShiftPipelines(dynamicClient)
|
|
65
|
+
success = installOpenShiftPipelines(dynamicClient)
|
|
66
|
+
assert success is True
|
|
66
67
|
|
|
67
68
|
# Create the pipelines namespace and install the MAS tekton definitions
|
|
68
69
|
createNamespace(dynamicClient, pipelinesNamespace)
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
mas/cli/__init__.py,sha256=
|
|
2
|
-
mas/cli/cli.py,sha256=
|
|
1
|
+
mas/cli/__init__.py,sha256=PhAJb_65SxYE0l37KMAOa709b-rSxrIb6rPn8W6qQ34,527
|
|
2
|
+
mas/cli/cli.py,sha256=swUYy2kHWrlB-3ivXnoSO46BV0whbu3q00XAeR58nN0,20104
|
|
3
3
|
mas/cli/displayMixins.py,sha256=o61M4Jdi7hXk7aopIfShT9oTh1lrrRd_GgfKu4QvgUM,6056
|
|
4
4
|
mas/cli/gencfg.py,sha256=kgbYihOcqGADK8XnrfcEoBawaY1qSGKuVNW1unACOnU,4433
|
|
5
|
-
mas/cli/validators.py,sha256
|
|
5
|
+
mas/cli/validators.py,sha256=PVLpZczsBc-iCF07d-qJNRe7EC4zLGyUZ7aHRZo9Ojc,7044
|
|
6
6
|
mas/cli/aiservice/install/__init__.py,sha256=Af-TjB2oIy3bM-Rt3YNeJ_2ndsZZU7azqFkT5um7XQY,515
|
|
7
|
-
mas/cli/aiservice/install/app.py,sha256=
|
|
7
|
+
mas/cli/aiservice/install/app.py,sha256=KNVkwJVC-B0YgBW0Af9Gdp3S9caFQGkhuwPsIlsN9OI,43875
|
|
8
8
|
mas/cli/aiservice/install/argBuilder.py,sha256=dZUW37sg9abzgwl_ms-G3EqWzYCFHr4SDyfkHQmH5rk,9772
|
|
9
9
|
mas/cli/aiservice/install/argParser.py,sha256=hqB_hjrpG5Q4zuNewbpz--6njlxHoe1mD4No8d5iSqE,14468
|
|
10
10
|
mas/cli/aiservice/install/params.py,sha256=8ed_jly6W9CuVvTiqrb8jQxoQQKfbGXepSbx2XjnAQU,2401
|
|
11
11
|
mas/cli/aiservice/install/summarizer.py,sha256=WO0SR8H1mFBN8mn17eoq1tNf7mvNjlgVSu1Lx0fAfp8,6008
|
|
12
|
+
mas/cli/aiservice/upgrade/__init__.py,sha256=Af-TjB2oIy3bM-Rt3YNeJ_2ndsZZU7azqFkT5um7XQY,515
|
|
13
|
+
mas/cli/aiservice/upgrade/app.py,sha256=V5MC-wsf63eONgt6qctUfRlYV0X1J75zzSZgtNNHc_E,7436
|
|
14
|
+
mas/cli/aiservice/upgrade/argParser.py,sha256=Lbl_8dkTWtuPsIUCfhoutKwfV82s-q_BzsHp4xoAq58,2252
|
|
12
15
|
mas/cli/install/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
13
|
-
mas/cli/install/app.py,sha256=
|
|
16
|
+
mas/cli/install/app.py,sha256=xRTENyD3Thai6v2xyM3mzqR4A8rPbn1Ks2bAohjRER8,70317
|
|
14
17
|
mas/cli/install/argBuilder.py,sha256=lco77lRujd7uK2enc8urcR7MXXuqSUY_o2U045SyRVA,29072
|
|
15
18
|
mas/cli/install/argParser.py,sha256=sOa0Irmt1azaSal24wk4aFgDoYeUFvh2HzzKYOLClFQ,36271
|
|
16
|
-
mas/cli/install/catalogs.py,sha256=
|
|
19
|
+
mas/cli/install/catalogs.py,sha256=5hGzTtc-JyQWdNd_--JyjTUmxd5NNFQsZiSvViy756k,917
|
|
17
20
|
mas/cli/install/params.py,sha256=bUJzf2V3oJhsIH9-OUp0BOfzD-ycxh3HWaIKL7DlU2Q,4919
|
|
18
21
|
mas/cli/install/summarizer.py,sha256=qfvcLAaOgcyj6O0sbd7HLqgOPDQKT5uFzhrIPantUlo,22554
|
|
19
22
|
mas/cli/install/settings/__init__.py,sha256=RdyBSh-rM0wkuvILVzJ1gxjOtLuQ1mF6QbEL0MyiKIY,1034
|
|
20
23
|
mas/cli/install/settings/additionalConfigs.py,sha256=hFN7OIiPmmAoo8h_5JiMLtW9r30zK1mMKuPqPpFf1mc,10187
|
|
21
|
-
mas/cli/install/settings/db2Settings.py,sha256=
|
|
24
|
+
mas/cli/install/settings/db2Settings.py,sha256=OqtsZqnFXVrkOuxkOvjkHJhqJPgLPL0RNP-oroSsFpE,15230
|
|
22
25
|
mas/cli/install/settings/kafkaSettings.py,sha256=r1uK-IApqB9IQiSNt_8sP0wa4FPJcXU_qnadhElEOuI,7241
|
|
23
26
|
mas/cli/install/settings/manageSettings.py,sha256=VEMOkFoyJot29Sc8DrTg2ytZiM6Ga5gTeVftoW-yuIU,16878
|
|
24
27
|
mas/cli/install/settings/mongodbSettings.py,sha256=aZdQHpeMwLVznrJWAkJsZu2Ok9t4Dkra2RGa_uKJHaY,2604
|
|
25
28
|
mas/cli/install/settings/turbonomicSettings.py,sha256=ul4eWf53b1NCzJTFsEPX6DWM23YUlWILYBygplqXYlU,1631
|
|
26
29
|
mas/cli/templates/facilities-configs.yml.j2,sha256=Er4UwxUl1Y3rtjIPMExVM8EXNcbesMusgLcRV050B1s,774
|
|
27
|
-
mas/cli/templates/ibm-mas-tekton.yaml,sha256=
|
|
30
|
+
mas/cli/templates/ibm-mas-tekton.yaml,sha256=2a_7s7iPvj9x_3vG87YKjLqkAxwymQfdzsPvSLAwymo,1598323
|
|
28
31
|
mas/cli/templates/jdbccfg.yml.j2,sha256=cANbwkUkKEPQp-P3_BB_Llbt94457Ciagah2hOdySIM,1644
|
|
29
32
|
mas/cli/templates/suite_mongocfg.yml.j2,sha256=WrgJUfGyvfaRIHjY5VR_zLZ5irTpV5khKNq76ejIxKU,1606
|
|
30
33
|
mas/cli/templates/pod-templates/best-effort/ibm-data-dictionary-assetdatadictionary.yml,sha256=8VG_FDFcEjWNaAOZTcS58Pe0tWOXC10SJLloNqzEMC8,757
|
|
@@ -98,17 +101,17 @@ mas/cli/templates/pod-templates/guaranteed/ibm-mas-suite.yml,sha256=aB-buCWUAqD0
|
|
|
98
101
|
mas/cli/templates/pod-templates/guaranteed/ibm-mas-visualinspection.yml,sha256=NiXBlXKe3j2RvroEcx3kCSuD92G6WB-jcpNAYGAg3T0,1975
|
|
99
102
|
mas/cli/templates/pod-templates/guaranteed/ibm-sls-licenseservice.yml,sha256=CKt1yim4L3ClloVcQDHiXLD8EMvmKXIltmDxJTxNdDs,546
|
|
100
103
|
mas/cli/uninstall/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
101
|
-
mas/cli/uninstall/app.py,sha256=
|
|
104
|
+
mas/cli/uninstall/app.py,sha256=321wCGxoJbYBJ2ymjyqKhr6b0eY-apsou8tcblgzgWA,10257
|
|
102
105
|
mas/cli/uninstall/argParser.py,sha256=VVG4myUvFOtg98L6HAzpgGg7s5c-vub_UMZPGuNQko4,3452
|
|
103
106
|
mas/cli/update/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
104
|
-
mas/cli/update/app.py,sha256=
|
|
107
|
+
mas/cli/update/app.py,sha256=r1Yw2KKS4xNpjfspKDQ6nYx_uaS0jUpK3WqiJZSlZ4s,40752
|
|
105
108
|
mas/cli/update/argParser.py,sha256=oOIXzB_rsI2p3og_5X5SFt_g7LURyEdLxZeiGCKq1nU,4711
|
|
106
109
|
mas/cli/upgrade/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
107
|
-
mas/cli/upgrade/app.py,sha256=
|
|
110
|
+
mas/cli/upgrade/app.py,sha256=XHI632KIiU6rcoEnLShquHFSMY-A4-EXOI281djF3HI,10022
|
|
108
111
|
mas/cli/upgrade/argParser.py,sha256=5JxAcbwKjFKCKnbucCxg7Xacdhjphb9nRORfsgB1h_0,2196
|
|
109
112
|
mas/cli/upgrade/settings/__init__.py,sha256=QI2CUsj-NXBU1qrPOsOk4MbeWnfNq0UOF3rYYc_1l2A,775
|
|
110
|
-
mas_cli-15.
|
|
111
|
-
mas_cli-15.
|
|
112
|
-
mas_cli-15.
|
|
113
|
-
mas_cli-15.
|
|
114
|
-
mas_cli-15.
|
|
113
|
+
mas_cli-15.11.0.data/scripts/mas-cli,sha256=Mlg4XW8eQT_fY-AdAvzHbOFB_WWwsondT83FTGQIRZ4,3803
|
|
114
|
+
mas_cli-15.11.0.dist-info/METADATA,sha256=FnkWi_OL6asWiURUmPuWobJKzHK6EmCjECQSBs1KRLY,2295
|
|
115
|
+
mas_cli-15.11.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
116
|
+
mas_cli-15.11.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
|
|
117
|
+
mas_cli-15.11.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|