mas-cli 13.25.1__py3-none-any.whl → 13.27.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/__init__.py +11 -0
- mas/cli/aiservice/install/app.py +810 -0
- mas/cli/aiservice/install/argBuilder.py +232 -0
- mas/cli/aiservice/install/argParser.py +742 -0
- mas/cli/aiservice/install/params.py +120 -0
- mas/cli/aiservice/install/summarizer.py +193 -0
- mas/cli/cli.py +16 -3
- mas/cli/gencfg.py +23 -0
- mas/cli/install/app.py +35 -25
- mas/cli/install/argBuilder.py +13 -13
- mas/cli/install/argParser.py +26 -167
- mas/cli/install/catalogs.py +3 -2
- mas/cli/install/params.py +4 -4
- mas/cli/install/settings/db2Settings.py +4 -2
- mas/cli/install/settings/manageSettings.py +3 -27
- mas/cli/install/summarizer.py +8 -27
- mas/cli/templates/facilities-configs.yml.j2 +25 -0
- mas/cli/templates/ibm-mas-tekton.yaml +4407 -547
- mas/cli/update/app.py +8 -5
- mas/cli/validators.py +13 -0
- {mas_cli-13.25.1.data → mas_cli-13.27.0.data}/scripts/mas-cli +4 -0
- {mas_cli-13.25.1.dist-info → mas_cli-13.27.0.dist-info}/METADATA +1 -1
- {mas_cli-13.25.1.dist-info → mas_cli-13.27.0.dist-info}/RECORD +26 -19
- {mas_cli-13.25.1.dist-info → mas_cli-13.27.0.dist-info}/WHEEL +0 -0
- {mas_cli-13.25.1.dist-info → mas_cli-13.27.0.dist-info}/top_level.txt +0 -0
mas/cli/update/app.py
CHANGED
|
@@ -242,13 +242,13 @@ class UpdateApp(BaseApp):
|
|
|
242
242
|
self.printH1("Select IBM Maximo Operator Catalog Version")
|
|
243
243
|
self.printDescription([
|
|
244
244
|
"Select MAS Catalog",
|
|
245
|
-
" 1)
|
|
246
|
-
" 2)
|
|
247
|
-
" 3)
|
|
245
|
+
" 1) Jun 05 2025 Update (MAS 9.1.0, 9.0.12, 8.11.21, & 8.10.26)",
|
|
246
|
+
" 2) May 01 2025 Update (MAS 9.0.11, 8.11.22, & 8.10.25)",
|
|
247
|
+
" 3) Apr 03 2025 Update (MAS 9.0.10, 8.11.21, & 8.10.24)",
|
|
248
248
|
])
|
|
249
249
|
|
|
250
250
|
catalogOptions = [
|
|
251
|
-
"v9-
|
|
251
|
+
"v9-250624-amd64", "v9-250501-amd64", "v9-250403-amd64",
|
|
252
252
|
]
|
|
253
253
|
self.promptForListSelect("Select catalog version", catalogOptions, "mas_catalog_version", default=1)
|
|
254
254
|
|
|
@@ -363,6 +363,7 @@ class UpdateApp(BaseApp):
|
|
|
363
363
|
"v9-250306-amd64": "7.0.12",
|
|
364
364
|
"v9-250403-amd64": "7.0.12",
|
|
365
365
|
"v9-250501-amd64": "7.0.12",
|
|
366
|
+
"v9-250624-amd64": "7.0.12",
|
|
366
367
|
}
|
|
367
368
|
catalogVersion = self.getParam('mas_catalog_version')
|
|
368
369
|
if catalogVersion in mongoVersions:
|
|
@@ -376,6 +377,7 @@ class UpdateApp(BaseApp):
|
|
|
376
377
|
currentMongoVersionMajor = currentMongoVersion.split(".")[0]
|
|
377
378
|
|
|
378
379
|
if targetMongoVersionMajor > currentMongoVersionMajor:
|
|
380
|
+
self.setParam("mongodb_action", "install")
|
|
379
381
|
# Let users know that Mongo will be upgraded if existing MongoDb major.minor version
|
|
380
382
|
# is lower than the target major version
|
|
381
383
|
# We don't show this message for normal updates, e.g. 5.0.1 to 5.0.2
|
|
@@ -400,7 +402,7 @@ class UpdateApp(BaseApp):
|
|
|
400
402
|
self.showMongoDependencyUpdateNotice(currentMongoVersion, targetMongoVersion)
|
|
401
403
|
self.fatalError(f"Existing MongoDB Community Edition installation at version {currentMongoVersion} cannot be downgraded to version {targetMongoVersion}")
|
|
402
404
|
else:
|
|
403
|
-
h.stop_and_persist(symbol=self.successIcon, text=f"MongoDb CE is
|
|
405
|
+
h.stop_and_persist(symbol=self.successIcon, text=f"MongoDb CE is already installed at version {targetMongoVersion}")
|
|
404
406
|
else:
|
|
405
407
|
# There's no MongoDb instance installed in the cluster, so nothing to do
|
|
406
408
|
h.stop_and_persist(symbol=self.successIcon, text="No MongoDb CE instances found")
|
|
@@ -497,6 +499,7 @@ class UpdateApp(BaseApp):
|
|
|
497
499
|
"v9-250306-amd64": "5.0.0",
|
|
498
500
|
"v9-250403-amd64": "5.0.0",
|
|
499
501
|
"v9-250501-amd64": "5.0.0",
|
|
502
|
+
"v9-250624-amd64": "5.1.3",
|
|
500
503
|
}
|
|
501
504
|
|
|
502
505
|
with Halo(text='Checking for IBM Cloud Pak for Data', spinner=self.spinner) as h:
|
mas/cli/validators.py
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
from re import match
|
|
12
12
|
from os import path
|
|
13
|
+
from json import loads, JSONDecodeError
|
|
13
14
|
|
|
14
15
|
# Use of the openshift client rather than the kubernetes client allows us access to "apply"
|
|
15
16
|
from openshift import dynamic
|
|
@@ -136,3 +137,15 @@ class OptimizerInstallPlanValidator(Validator):
|
|
|
136
137
|
response = document.text
|
|
137
138
|
if response not in ["full", "limited"]:
|
|
138
139
|
raise ValidationError(message='Enter a valid response: full, limited', cursor_position=len(response))
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
class JsonValidator(Validator):
|
|
143
|
+
def validate(self, document):
|
|
144
|
+
"""
|
|
145
|
+
Validate that a response is a valid JSON
|
|
146
|
+
"""
|
|
147
|
+
inputJson = document.text
|
|
148
|
+
try:
|
|
149
|
+
loads(inputJson)
|
|
150
|
+
except JSONDecodeError:
|
|
151
|
+
raise (ValidationError(message='Enter a valid JSON', cursor_position=len(inputJson)))
|
|
@@ -15,6 +15,7 @@ from sys import argv
|
|
|
15
15
|
|
|
16
16
|
from mas.cli import __version__ as VERSION
|
|
17
17
|
from mas.cli.install.app import InstallApp
|
|
18
|
+
from mas.cli.aiservice.install.app import AiServiceInstallApp
|
|
18
19
|
from mas.cli.update.app import UpdateApp
|
|
19
20
|
from mas.cli.upgrade.app import UpgradeApp
|
|
20
21
|
from mas.cli.uninstall.app import UninstallApp
|
|
@@ -54,6 +55,9 @@ if __name__ == '__main__':
|
|
|
54
55
|
if function == "install":
|
|
55
56
|
app = InstallApp()
|
|
56
57
|
app.install(argv[2:])
|
|
58
|
+
elif function == "aiservice-install":
|
|
59
|
+
app = AiServiceInstallApp()
|
|
60
|
+
app.install(argv[2:])
|
|
57
61
|
elif function == "uninstall":
|
|
58
62
|
app = UninstallApp()
|
|
59
63
|
app.uninstall(argv[2:])
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
mas/cli/__init__.py,sha256=
|
|
2
|
-
mas/cli/cli.py,sha256=
|
|
1
|
+
mas/cli/__init__.py,sha256=IFP-w4GXN2hb5svIp4O8HX30nUs8cN8d9bGmCWhEicA,527
|
|
2
|
+
mas/cli/cli.py,sha256=bdmDEJvk8PyQSB0mqw__WFi3808K5wwRr8Ccx-9NmQA,18933
|
|
3
3
|
mas/cli/displayMixins.py,sha256=e3lAx1DIOwsriDcNI0M2JyP1jeLOZKvId6sPrvWLyqs,5984
|
|
4
|
-
mas/cli/gencfg.py,sha256=
|
|
5
|
-
mas/cli/validators.py,sha256=
|
|
4
|
+
mas/cli/gencfg.py,sha256=kgbYihOcqGADK8XnrfcEoBawaY1qSGKuVNW1unACOnU,4433
|
|
5
|
+
mas/cli/validators.py,sha256=2mLqBfoFU4D3A84ma9namjpnPKR3a0XySSGXa_b7pWg,5495
|
|
6
|
+
mas/cli/aiservice/install/__init__.py,sha256=Af-TjB2oIy3bM-Rt3YNeJ_2ndsZZU7azqFkT5um7XQY,515
|
|
7
|
+
mas/cli/aiservice/install/app.py,sha256=zK9K4wx4kADrCQMeIVaDWDZ46_8h3o1-_hbEDH6rZt0,41423
|
|
8
|
+
mas/cli/aiservice/install/argBuilder.py,sha256=gavbxaLPfYVXwjjTs6o-dpP-_0YrL1Kg8XIxAjWT5oU,15584
|
|
9
|
+
mas/cli/aiservice/install/argParser.py,sha256=ilwn58CoZxUs54guscEiFD-loTB2iUgL4w18kz3MqA4,21441
|
|
10
|
+
mas/cli/aiservice/install/params.py,sha256=923Q-T-3VJqr7QZCvFUVu8syKVnMfy604al7xk9UtNY,3491
|
|
11
|
+
mas/cli/aiservice/install/summarizer.py,sha256=E7bxTnOz6wSgce_KBq2AmQSLpWeMwSjWhED-2gEtTnY,11405
|
|
6
12
|
mas/cli/install/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
7
|
-
mas/cli/install/app.py,sha256=
|
|
8
|
-
mas/cli/install/argBuilder.py,sha256=
|
|
9
|
-
mas/cli/install/argParser.py,sha256=
|
|
10
|
-
mas/cli/install/catalogs.py,sha256=
|
|
11
|
-
mas/cli/install/params.py,sha256=
|
|
12
|
-
mas/cli/install/summarizer.py,sha256=
|
|
13
|
+
mas/cli/install/app.py,sha256=Op2reTxi9okJF0xUM04InADWtEg-d20mhc3sNY7zHtI,69019
|
|
14
|
+
mas/cli/install/argBuilder.py,sha256=v_rnUYnmY4q4xw8HQJ2L07NtA84ZZcJLpL9jVvR-Kb4,28380
|
|
15
|
+
mas/cli/install/argParser.py,sha256=PjqadJxQKaIryld3YuwmN_VuSoHJBILwLRWbnCfOtlM,35161
|
|
16
|
+
mas/cli/install/catalogs.py,sha256=p9WFQSA6vcQNiOrlAGCmr5e5IwHJTL0D9QU-e1wco6E,804
|
|
17
|
+
mas/cli/install/params.py,sha256=vzaqivQ7odTxI45wZmrelA73cnaPu4fomBpDNwhYp40,5650
|
|
18
|
+
mas/cli/install/summarizer.py,sha256=7uBwOWWT9Zxhwbl3chZvC8a3n_qt8IVUU-6ZkGfIJAc,22045
|
|
13
19
|
mas/cli/install/settings/__init__.py,sha256=RdyBSh-rM0wkuvILVzJ1gxjOtLuQ1mF6QbEL0MyiKIY,1034
|
|
14
20
|
mas/cli/install/settings/additionalConfigs.py,sha256=hFN7OIiPmmAoo8h_5JiMLtW9r30zK1mMKuPqPpFf1mc,10187
|
|
15
|
-
mas/cli/install/settings/db2Settings.py,sha256=
|
|
21
|
+
mas/cli/install/settings/db2Settings.py,sha256=zFw1wiZTGFLdUsQUKY0l5dWne4ZXQhKuksSO0Q_86AM,16825
|
|
16
22
|
mas/cli/install/settings/kafkaSettings.py,sha256=r1uK-IApqB9IQiSNt_8sP0wa4FPJcXU_qnadhElEOuI,7241
|
|
17
|
-
mas/cli/install/settings/manageSettings.py,sha256=
|
|
23
|
+
mas/cli/install/settings/manageSettings.py,sha256=TZIdAY_xUc751i-Vs6cXhVI3ul4MCnLdtpP9khLZpeI,16109
|
|
18
24
|
mas/cli/install/settings/mongodbSettings.py,sha256=aZdQHpeMwLVznrJWAkJsZu2Ok9t4Dkra2RGa_uKJHaY,2604
|
|
19
25
|
mas/cli/install/settings/turbonomicSettings.py,sha256=ul4eWf53b1NCzJTFsEPX6DWM23YUlWILYBygplqXYlU,1631
|
|
20
|
-
mas/cli/templates/
|
|
26
|
+
mas/cli/templates/facilities-configs.yml.j2,sha256=Er4UwxUl1Y3rtjIPMExVM8EXNcbesMusgLcRV050B1s,774
|
|
27
|
+
mas/cli/templates/ibm-mas-tekton.yaml,sha256=-GIimGueZm0MKXnSnPHThQM52_JoXs5TBbNByCVGWbs,1092620
|
|
21
28
|
mas/cli/templates/jdbccfg.yml.j2,sha256=cANbwkUkKEPQp-P3_BB_Llbt94457Ciagah2hOdySIM,1644
|
|
22
29
|
mas/cli/templates/suite_mongocfg.yml.j2,sha256=WrgJUfGyvfaRIHjY5VR_zLZ5irTpV5khKNq76ejIxKU,1606
|
|
23
30
|
mas/cli/templates/pod-templates/best-effort/ibm-data-dictionary-assetdatadictionary.yml,sha256=8VG_FDFcEjWNaAOZTcS58Pe0tWOXC10SJLloNqzEMC8,757
|
|
@@ -94,14 +101,14 @@ mas/cli/uninstall/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc
|
|
|
94
101
|
mas/cli/uninstall/app.py,sha256=uPJy3z-1Yt66MSFdZz1Qh8MjA97ZrQmjSgTx-Gqua9I,10047
|
|
95
102
|
mas/cli/uninstall/argParser.py,sha256=VVG4myUvFOtg98L6HAzpgGg7s5c-vub_UMZPGuNQko4,3452
|
|
96
103
|
mas/cli/update/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
97
|
-
mas/cli/update/app.py,sha256=
|
|
104
|
+
mas/cli/update/app.py,sha256=tp8bGy-vJMch1HOFgGNlntqKkYD1Tyozjq2Kx_FH7Z8,39265
|
|
98
105
|
mas/cli/update/argParser.py,sha256=oOIXzB_rsI2p3og_5X5SFt_g7LURyEdLxZeiGCKq1nU,4711
|
|
99
106
|
mas/cli/upgrade/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
100
107
|
mas/cli/upgrade/app.py,sha256=3Z7oVrQGJPrV5dZjXZuBGT78vODPDLXnHnfD27pxNDs,8926
|
|
101
108
|
mas/cli/upgrade/argParser.py,sha256=5JxAcbwKjFKCKnbucCxg7Xacdhjphb9nRORfsgB1h_0,2196
|
|
102
109
|
mas/cli/upgrade/settings/__init__.py,sha256=QI2CUsj-NXBU1qrPOsOk4MbeWnfNq0UOF3rYYc_1l2A,775
|
|
103
|
-
mas_cli-13.
|
|
104
|
-
mas_cli-13.
|
|
105
|
-
mas_cli-13.
|
|
106
|
-
mas_cli-13.
|
|
107
|
-
mas_cli-13.
|
|
110
|
+
mas_cli-13.27.0.data/scripts/mas-cli,sha256=ijL4Ecg_2fRtdrQ8Mk28qsi6o3O6KRIAUM8BUry5cPs,3621
|
|
111
|
+
mas_cli-13.27.0.dist-info/METADATA,sha256=4n6zKH4ZaUxGYIo66uWgWycPSnH27wwzK1pHxfuCtXo,2259
|
|
112
|
+
mas_cli-13.27.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
113
|
+
mas_cli-13.27.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
|
|
114
|
+
mas_cli-13.27.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|