mas-cli 11.9.2__py3-none-any.whl → 11.10.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/cli.py +5 -4
- mas/cli/displayMixins.py +5 -1
- mas/cli/install/app.py +145 -55
- mas/cli/install/catalogs.py +5 -127
- mas/cli/install/settings/additionalConfigs.py +1 -1
- mas/cli/install/settings/db2Settings.py +2 -2
- mas/cli/install/settings/kafkaSettings.py +1 -1
- mas/cli/install/settings/manageSettings.py +4 -4
- mas/cli/install/settings/turbonomicSettings.py +1 -1
- mas/cli/templates/ibm-mas-tekton.yaml +107 -101
- mas/cli/update/app.py +11 -23
- {mas_cli-11.9.2.dist-info → mas_cli-11.10.0.dist-info}/METADATA +7 -7
- {mas_cli-11.9.2.dist-info → mas_cli-11.10.0.dist-info}/RECORD +17 -17
- {mas_cli-11.9.2.dist-info → mas_cli-11.10.0.dist-info}/WHEEL +1 -1
- {mas_cli-11.9.2.data → mas_cli-11.10.0.data}/scripts/mas-cli +0 -0
- {mas_cli-11.9.2.dist-info → mas_cli-11.10.0.dist-info}/top_level.txt +0 -0
mas/cli/update/app.py
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
#
|
|
10
10
|
# *****************************************************************************
|
|
11
11
|
|
|
12
|
-
import re
|
|
13
12
|
import logging
|
|
14
13
|
import logging.handlers
|
|
15
14
|
from halo import Halo
|
|
@@ -22,7 +21,7 @@ from ..validators import StorageClassValidator
|
|
|
22
21
|
from .argParser import updateArgParser
|
|
23
22
|
|
|
24
23
|
from mas.devops.ocp import createNamespace, getStorageClasses, getConsoleURL
|
|
25
|
-
from mas.devops.mas import listMasInstances
|
|
24
|
+
from mas.devops.mas import listMasInstances, getCurrentCatalog
|
|
26
25
|
from mas.devops.tekton import preparePipelinesNamespace, installOpenShiftPipelines, updateTektonDefinitions, launchUpdatePipeline
|
|
27
26
|
|
|
28
27
|
|
|
@@ -205,30 +204,19 @@ class UpdateApp(BaseApp):
|
|
|
205
204
|
print()
|
|
206
205
|
|
|
207
206
|
def reviewCurrentCatalog(self) -> None:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
# catalogId = v8-yymmdd-amd64
|
|
217
|
-
# catalogVersion = yymmdd
|
|
218
|
-
self.installedCatalogId = m.group("catalogId")
|
|
219
|
-
elif re.match(r".+v8-amd64", catalogDisplayName):
|
|
220
|
-
self.installedCatalogId = "v8-amd64"
|
|
221
|
-
else:
|
|
222
|
-
self.installedCatalogId = None
|
|
223
|
-
self.printWarning("Unable to determine identity & version of currently installed ibm-maximo-operator-catalog")
|
|
224
|
-
|
|
207
|
+
catalogInfo = getCurrentCatalog(self.dynamicClient)
|
|
208
|
+
self.installedCatalogId = None
|
|
209
|
+
if catalogInfo is None:
|
|
210
|
+
self.fatalError("Unable to locate existing install of the IBM Maximo Operator Catalog")
|
|
211
|
+
elif catalogInfo["catalogId"] is None:
|
|
212
|
+
self.printWarning("Unable to determine identity & version of currently installed ibm-maximo-operator-catalog")
|
|
213
|
+
else:
|
|
214
|
+
self.installedCatalogId = catalogInfo["catalogId"]
|
|
225
215
|
self.printH1("Review Installed Catalog")
|
|
226
216
|
self.printDescription([
|
|
227
|
-
f"The currently installed Maximo Operator Catalog is <u>{
|
|
228
|
-
f" <u>{
|
|
217
|
+
f"The currently installed Maximo Operator Catalog is <u>{catalogInfo['displayName']}</u>",
|
|
218
|
+
f" <u>{catalogInfo['image']}</u>"
|
|
229
219
|
])
|
|
230
|
-
except NotFoundError as e:
|
|
231
|
-
self.fatalError("Unable to locate existing install of the IBM Maximo Operator Catalog", e)
|
|
232
220
|
|
|
233
221
|
def reviewMASInstance(self) -> None:
|
|
234
222
|
self.printH1("Review MAS Instances")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mas-cli
|
|
3
|
-
Version: 11.
|
|
3
|
+
Version: 11.10.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
|
|
@@ -17,17 +17,17 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
17
17
|
Classifier: Topic :: Communications
|
|
18
18
|
Classifier: Topic :: Internet
|
|
19
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
-
Requires-Dist: mas-devops
|
|
20
|
+
Requires-Dist: mas-devops>=1.10.0
|
|
21
21
|
Requires-Dist: halo
|
|
22
|
-
Requires-Dist:
|
|
22
|
+
Requires-Dist: prompt_toolkit
|
|
23
23
|
Requires-Dist: openshift
|
|
24
24
|
Requires-Dist: kubernetes
|
|
25
25
|
Requires-Dist: tabulate
|
|
26
26
|
Provides-Extra: dev
|
|
27
|
-
Requires-Dist: build
|
|
28
|
-
Requires-Dist: flake8
|
|
29
|
-
Requires-Dist: pytest
|
|
30
|
-
Requires-Dist: pyinstaller
|
|
27
|
+
Requires-Dist: build; extra == "dev"
|
|
28
|
+
Requires-Dist: flake8; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest; extra == "dev"
|
|
30
|
+
Requires-Dist: pyinstaller; extra == "dev"
|
|
31
31
|
|
|
32
32
|
mas.devops
|
|
33
33
|
----------
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
mas/cli/__init__.py,sha256=
|
|
2
|
-
mas/cli/cli.py,sha256=
|
|
3
|
-
mas/cli/displayMixins.py,sha256=
|
|
1
|
+
mas/cli/__init__.py,sha256=iSdNxT_1K6squ02f99IEWgoPtOyDmCEbnqQAQWidAnI,527
|
|
2
|
+
mas/cli/cli.py,sha256=yrT2ryPZPA2TCYO4aJxjBwnRWThInu1KAmpQbPN6UyE,15830
|
|
3
|
+
mas/cli/displayMixins.py,sha256=rsLWW5s7dcCKv9NdUaGcOsuqC9gUW8B9_AfHBuE5E6U,5954
|
|
4
4
|
mas/cli/gencfg.py,sha256=p38Ss_ooiNHOZTJT8l0YxDaEaPwD4ZXgxEbW-S9YLNY,3311
|
|
5
5
|
mas/cli/validators.py,sha256=vi1pFA8QtqMhqtGk1NlkkNDUrlFCi53kS5wJqFGDgOU,5108
|
|
6
6
|
mas/cli/install/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
7
|
-
mas/cli/install/app.py,sha256=
|
|
7
|
+
mas/cli/install/app.py,sha256=AnP3Y_IVgaWAvsE4nBNf-o9eXfXeMz0mJFbhiH38DpY,57783
|
|
8
8
|
mas/cli/install/argBuilder.py,sha256=dATpbY1kojvhr35NixZ11WZD3DzEJAfaAWhaYFLhEnQ,23033
|
|
9
9
|
mas/cli/install/argParser.py,sha256=dt06eSJkZFqzMD0gboMDUBbfIrDnLB3nEowFAs3_Th4,33205
|
|
10
|
-
mas/cli/install/catalogs.py,sha256=
|
|
10
|
+
mas/cli/install/catalogs.py,sha256=ki-yYW_Qkfz-cX9MW8cCOK-KuUaPNuw7Jie_bnjvO7M,640
|
|
11
11
|
mas/cli/install/params.py,sha256=niefj7fwDvwDVjCOiRybURk6lNUWliv8IXNCX-mIkZw,4780
|
|
12
12
|
mas/cli/install/summarizer.py,sha256=EW-9lIQQu9a0HWJeDP33socVKqTikkpr74n7uqa6QTs,21050
|
|
13
13
|
mas/cli/install/settings/__init__.py,sha256=RdyBSh-rM0wkuvILVzJ1gxjOtLuQ1mF6QbEL0MyiKIY,1034
|
|
14
|
-
mas/cli/install/settings/additionalConfigs.py,sha256=
|
|
15
|
-
mas/cli/install/settings/db2Settings.py,sha256=
|
|
16
|
-
mas/cli/install/settings/kafkaSettings.py,sha256=
|
|
17
|
-
mas/cli/install/settings/manageSettings.py,sha256=
|
|
14
|
+
mas/cli/install/settings/additionalConfigs.py,sha256=QyeVN_y3aXL3GU5RxtfPSgQTon72eSj6_xlwSwJvoMQ,9426
|
|
15
|
+
mas/cli/install/settings/db2Settings.py,sha256=0jWV_Wgvs5X7UcGQGRa3KA6qAZoJsYgP5kxX1yKZsIY,13003
|
|
16
|
+
mas/cli/install/settings/kafkaSettings.py,sha256=oJxFhWQkqPi7Do53tu4oxskGbEL4hroH2129OLom5lU,7241
|
|
17
|
+
mas/cli/install/settings/manageSettings.py,sha256=rBBq3r9AaDS5fLeKbItgLBnsguuZwyNKo80oYBBEB-0,16241
|
|
18
18
|
mas/cli/install/settings/mongodbSettings.py,sha256=mFKL58d7ZxKkPkViUVAQTGhOxPSwAp5l2nhO0QF31qA,2356
|
|
19
|
-
mas/cli/install/settings/turbonomicSettings.py,sha256=
|
|
20
|
-
mas/cli/templates/ibm-mas-tekton.yaml,sha256=
|
|
19
|
+
mas/cli/install/settings/turbonomicSettings.py,sha256=wRAFV0Rg3Em_ILkLd8xR-a_oglXivnVeF6nVI_73Q9o,1695
|
|
20
|
+
mas/cli/templates/ibm-mas-tekton.yaml,sha256=9rWhxDdvyYzMdKlehY26JD_4eOHHMZus9T4AmTUW63Y,787917
|
|
21
21
|
mas/cli/templates/jdbccfg.yml.j2,sha256=cANbwkUkKEPQp-P3_BB_Llbt94457Ciagah2hOdySIM,1644
|
|
22
22
|
mas/cli/templates/suite_mongocfg.yml.j2,sha256=WrgJUfGyvfaRIHjY5VR_zLZ5irTpV5khKNq76ejIxKU,1606
|
|
23
23
|
mas/cli/templates/pod-templates/best-effort/ibm-data-dictionary-assetdatadictionary.yml,sha256=8VG_FDFcEjWNaAOZTcS58Pe0tWOXC10SJLloNqzEMC8,757
|
|
@@ -94,13 +94,13 @@ mas/cli/uninstall/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc
|
|
|
94
94
|
mas/cli/uninstall/app.py,sha256=uPJy3z-1Yt66MSFdZz1Qh8MjA97ZrQmjSgTx-Gqua9I,10047
|
|
95
95
|
mas/cli/uninstall/argParser.py,sha256=VVG4myUvFOtg98L6HAzpgGg7s5c-vub_UMZPGuNQko4,3452
|
|
96
96
|
mas/cli/update/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
97
|
-
mas/cli/update/app.py,sha256=
|
|
97
|
+
mas/cli/update/app.py,sha256=Fhf6WAcps6OME6ylLEWB5F8mlMx4FO3S0pXVihjYX_s,37136
|
|
98
98
|
mas/cli/update/argParser.py,sha256=oOIXzB_rsI2p3og_5X5SFt_g7LURyEdLxZeiGCKq1nU,4711
|
|
99
99
|
mas/cli/upgrade/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
100
100
|
mas/cli/upgrade/app.py,sha256=f1qfvzRdmf7YiYMtVTqKwE5RFVMcUkLGavCIZDuU_7c,5247
|
|
101
101
|
mas/cli/upgrade/argParser.py,sha256=zk629svjIk-hD40Ytc5e5UOLO3xogVrfqSz09S17mWw,1882
|
|
102
|
-
mas_cli-11.
|
|
103
|
-
mas_cli-11.
|
|
104
|
-
mas_cli-11.
|
|
105
|
-
mas_cli-11.
|
|
106
|
-
mas_cli-11.
|
|
102
|
+
mas_cli-11.10.0.data/scripts/mas-cli,sha256=Es-wSefTBcR3Vs5_kIUHQLfWHxTXVrmIPMFY0hbrxt8,3493
|
|
103
|
+
mas_cli-11.10.0.dist-info/METADATA,sha256=8spG8Foq-KendEUtHJx7dHgOfMYt7xmK_xGF5lXL4fs,2081
|
|
104
|
+
mas_cli-11.10.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
105
|
+
mas_cli-11.10.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
|
|
106
|
+
mas_cli-11.10.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|