mas-cli 11.2.1__py3-none-any.whl → 11.4.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 +1 -1
- mas/cli/install/app.py +45 -45
- mas/cli/templates/ibm-mas-tekton.yaml +441 -106
- mas/cli/uninstall/app.py +3 -1
- mas/cli/uninstall/argParser.py +7 -0
- mas/cli/update/app.py +29 -11
- mas/cli/update/argParser.py +28 -0
- {mas_cli-11.2.1.dist-info → mas_cli-11.4.0.dist-info}/METADATA +1 -1
- {mas_cli-11.2.1.dist-info → mas_cli-11.4.0.dist-info}/RECORD +13 -13
- {mas_cli-11.2.1.data → mas_cli-11.4.0.data}/scripts/mas-cli +0 -0
- {mas_cli-11.2.1.dist-info → mas_cli-11.4.0.dist-info}/WHEEL +0 -0
- {mas_cli-11.2.1.dist-info → mas_cli-11.4.0.dist-info}/top_level.txt +0 -0
mas/cli/uninstall/app.py
CHANGED
|
@@ -35,6 +35,7 @@ class UninstallApp(BaseApp):
|
|
|
35
35
|
"""
|
|
36
36
|
args = uninstallArgParser.parse_args(args=argv)
|
|
37
37
|
instanceId = args.mas_instance_id
|
|
38
|
+
droNamespace = args.dro_namespace
|
|
38
39
|
self.noConfirm = args.no_confirm
|
|
39
40
|
|
|
40
41
|
if args.uninstall_all_deps:
|
|
@@ -184,7 +185,8 @@ class UninstallApp(BaseApp):
|
|
|
184
185
|
uninstallCommonServices = uninstallCommonServices,
|
|
185
186
|
uninstallUDS = uninstallUDS,
|
|
186
187
|
uninstallMongoDb = uninstallMongoDb,
|
|
187
|
-
uninstallSLS = uninstallSLS
|
|
188
|
+
uninstallSLS = uninstallSLS,
|
|
189
|
+
droNamespace = droNamespace
|
|
188
190
|
)
|
|
189
191
|
if pipelineURL is not None:
|
|
190
192
|
h.stop_and_persist(symbol=self.successIcon, text=f"PipelineRun for {instanceId} uninstall submitted")
|
mas/cli/uninstall/argParser.py
CHANGED
|
@@ -33,6 +33,13 @@ masArgGroup.add_argument(
|
|
|
33
33
|
help="The MAS instance ID to be uninstalled"
|
|
34
34
|
)
|
|
35
35
|
|
|
36
|
+
masArgGroup.add_argument(
|
|
37
|
+
'--dro-namespace',
|
|
38
|
+
required=False,
|
|
39
|
+
default='redhat-marketplace',
|
|
40
|
+
help="The DRO namespace to be uninstalled"
|
|
41
|
+
)
|
|
42
|
+
|
|
36
43
|
depsArgGroup = uninstallArgParser.add_argument_group('MAS Dependencies Selection')
|
|
37
44
|
depsArgGroup.add_argument(
|
|
38
45
|
'--uninstall-all-deps',
|
mas/cli/update/app.py
CHANGED
|
@@ -37,6 +37,7 @@ class UpdateApp(BaseApp):
|
|
|
37
37
|
"""
|
|
38
38
|
self.args = updateArgParser.parse_args(args=argv)
|
|
39
39
|
self.noConfirm = self.args.no_confirm
|
|
40
|
+
self.devMode = self.args.dev_mode
|
|
40
41
|
|
|
41
42
|
if self.args.mas_catalog_version:
|
|
42
43
|
# Non-interactive mode
|
|
@@ -53,7 +54,13 @@ class UpdateApp(BaseApp):
|
|
|
53
54
|
"dro_migration",
|
|
54
55
|
"dro_storage_class",
|
|
55
56
|
"dro_namespace",
|
|
56
|
-
"skip_pre_check"
|
|
57
|
+
"skip_pre_check",
|
|
58
|
+
"dev_mode",
|
|
59
|
+
"cpd_product_version",
|
|
60
|
+
# Dev Mode
|
|
61
|
+
"artifactory_username",
|
|
62
|
+
"artifactory_token"
|
|
63
|
+
|
|
57
64
|
]
|
|
58
65
|
for key, value in vars(self.args).items():
|
|
59
66
|
# These fields we just pass straight through to the parameters and fail if they are not set
|
|
@@ -92,7 +99,8 @@ class UpdateApp(BaseApp):
|
|
|
92
99
|
self.chooseCatalog()
|
|
93
100
|
|
|
94
101
|
# Validations
|
|
95
|
-
self.
|
|
102
|
+
if not self.devMode:
|
|
103
|
+
self.validateCatalog()
|
|
96
104
|
|
|
97
105
|
self.printH1("Dependency Update Checks")
|
|
98
106
|
with Halo(text='Checking for IBM Watson Discovery', spinner=self.spinner) as h:
|
|
@@ -236,13 +244,13 @@ class UpdateApp(BaseApp):
|
|
|
236
244
|
self.printH1("Select IBM Maximo Operator Catalog Version")
|
|
237
245
|
self.printDescription([
|
|
238
246
|
"Select MAS Catalog",
|
|
239
|
-
" 1)
|
|
240
|
-
" 2)
|
|
241
|
-
" 3)
|
|
247
|
+
" 1) Oct 03 2024 Update (MAS 9.0.3, 8.11.15, & 8.10.18)",
|
|
248
|
+
" 2) Aug 27 2024 Update (MAS 9.0.2, 8.11.14, & 8.10.17)",
|
|
249
|
+
" 3) July 30 2024 Update (MAS 9.0.1, 8.11.13, & 8.10.16)"
|
|
242
250
|
])
|
|
243
251
|
|
|
244
252
|
catalogOptions = [
|
|
245
|
-
"v9-
|
|
253
|
+
"v9-241003-amd64", "v9-240827-amd64", "v9-240730-amd64"
|
|
246
254
|
]
|
|
247
255
|
self.promptForListSelect("Select catalog version", catalogOptions, "mas_catalog_version", default=1)
|
|
248
256
|
|
|
@@ -333,13 +341,19 @@ class UpdateApp(BaseApp):
|
|
|
333
341
|
# the case bundles in there anymore
|
|
334
342
|
# Longer term we will centralise this information inside the mas-devops python collection,
|
|
335
343
|
# where it can be made available to both the ansible collection and this python package.
|
|
344
|
+
defaultMongoVersion = "6.0.12"
|
|
336
345
|
mongoVersions = {
|
|
337
346
|
"v9-240625-amd64": "6.0.12",
|
|
338
347
|
"v9-240730-amd64": "6.0.12",
|
|
339
|
-
"v9-240827-amd64": "6.0.12"
|
|
348
|
+
"v9-240827-amd64": "6.0.12",
|
|
349
|
+
"v9-241003-amd64": "6.0.12"
|
|
340
350
|
}
|
|
351
|
+
catalogVersion = self.getParam('mas_catalog_version')
|
|
352
|
+
if catalogVersion in mongoVersions:
|
|
353
|
+
targetMongoVersion = mongoVersions[self.getParam('mas_catalog_version')]
|
|
354
|
+
else:
|
|
355
|
+
targetMongoVersion = defaultMongoVersion
|
|
341
356
|
|
|
342
|
-
targetMongoVersion = mongoVersions[self.getParam('mas_catalog_version')]
|
|
343
357
|
self.setParam("mongodb_version", targetMongoVersion)
|
|
344
358
|
|
|
345
359
|
targetMongoVersionMajor = targetMongoVersion.split(".")[0]
|
|
@@ -454,7 +468,8 @@ class UpdateApp(BaseApp):
|
|
|
454
468
|
cp4dVersions = {
|
|
455
469
|
"v9-240625-amd64": "4.8.0",
|
|
456
470
|
"v9-240730-amd64": "4.8.0",
|
|
457
|
-
"v9-240827-amd64": "4.8.0"
|
|
471
|
+
"v9-240827-amd64": "4.8.0",
|
|
472
|
+
"v9-241003-amd64": "4.8.0"
|
|
458
473
|
|
|
459
474
|
}
|
|
460
475
|
|
|
@@ -476,7 +491,10 @@ class UpdateApp(BaseApp):
|
|
|
476
491
|
if len(cpds) > 0:
|
|
477
492
|
cpdInstanceNamespace = cpds[0]["metadata"]["namespace"]
|
|
478
493
|
cpdInstanceVersion = cpds[0]["spec"]["version"]
|
|
479
|
-
|
|
494
|
+
if self.args.cpd_product_version:
|
|
495
|
+
cpdTargetVersion = self.getParam("cpd_product_version")
|
|
496
|
+
else:
|
|
497
|
+
cpdTargetVersion = cp4dVersions[self.getParam("mas_catalog_version")]
|
|
480
498
|
|
|
481
499
|
currentCpdVersionMajorMinor = f"{cpdInstanceVersion.split('.')[0]}.{cpdInstanceVersion.split('.')[1]}"
|
|
482
500
|
targetCpdVersionMajorMinor = f"{cpdTargetVersion.split('.')[0]}.{cpdTargetVersion.split('.')[1]}"
|
|
@@ -492,7 +510,7 @@ class UpdateApp(BaseApp):
|
|
|
492
510
|
"<u>Dependency Update Notice</u>",
|
|
493
511
|
f"Cloud Pak For Data is currently running version {cpdInstanceVersion} and will be updated to version {cpdTargetVersion}",
|
|
494
512
|
"It is recommended that you backup your Cloud Pak for Data instance before proceeding:",
|
|
495
|
-
" <u>https://www.ibm.com/docs/en/cloud-paks/cp-data/
|
|
513
|
+
" <u>https://www.ibm.com/docs/en/cloud-paks/cp-data/5.0.x?topic=administering-backing-up-restoring-cloud-pak-data</u>"
|
|
496
514
|
])
|
|
497
515
|
|
|
498
516
|
# Lookup the storage classes already used by CP4D
|
mas/cli/update/argParser.py
CHANGED
|
@@ -104,8 +104,36 @@ droArgGroup.add_argument(
|
|
|
104
104
|
help="Set Custom Namespace for DRO(Default: redhat-marketplace)",
|
|
105
105
|
)
|
|
106
106
|
|
|
107
|
+
# Development Mode
|
|
108
|
+
# -----------------------------------------------------------------------------
|
|
109
|
+
devArgGroup = updateArgParser.add_argument_group("Development Mode")
|
|
110
|
+
devArgGroup.add_argument(
|
|
111
|
+
"--artifactory-username",
|
|
112
|
+
required=False,
|
|
113
|
+
help="Username for access to development builds on Artifactory"
|
|
114
|
+
)
|
|
115
|
+
devArgGroup.add_argument(
|
|
116
|
+
"--artifactory-token",
|
|
117
|
+
required=False,
|
|
118
|
+
help="API Token for access to development builds on Artifactory"
|
|
119
|
+
)
|
|
107
120
|
|
|
121
|
+
# More Options
|
|
122
|
+
# -----------------------------------------------------------------------------
|
|
108
123
|
otherArgGroup = updateArgParser.add_argument_group('More')
|
|
124
|
+
otherArgGroup.add_argument(
|
|
125
|
+
"--dev-mode",
|
|
126
|
+
required=False,
|
|
127
|
+
action="store_true",
|
|
128
|
+
default=False,
|
|
129
|
+
help="Configure installation for development mode",
|
|
130
|
+
)
|
|
131
|
+
otherArgGroup.add_argument(
|
|
132
|
+
"--cp4d-version",
|
|
133
|
+
dest="cpd_product_version",
|
|
134
|
+
required=False,
|
|
135
|
+
help="Product version of CP4D to use"
|
|
136
|
+
)
|
|
109
137
|
otherArgGroup.add_argument(
|
|
110
138
|
'--no-confirm',
|
|
111
139
|
required=False,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
mas/cli/__init__.py,sha256=
|
|
2
|
-
mas/cli/cli.py,sha256=
|
|
1
|
+
mas/cli/__init__.py,sha256=b0mEzsD32qjAyt58076AzTBlzG6lLCmTO53XOq5TkZc,526
|
|
2
|
+
mas/cli/cli.py,sha256=AAxyOl7jPP1uqIK3_YkGqwfYlTrxC-IvLh7B8WoECAw,14563
|
|
3
3
|
mas/cli/displayMixins.py,sha256=ygDJ8KPLdJpip_JQ4JDPWbvo7ZIdsOZQfQoVnMdAauM,5594
|
|
4
4
|
mas/cli/gencfg.py,sha256=57ik5x73gQBFXPl_8h2byXmV_vhCgxfeSDZk4Wg5-Pw,2102
|
|
5
5
|
mas/cli/validators.py,sha256=vi1pFA8QtqMhqtGk1NlkkNDUrlFCi53kS5wJqFGDgOU,5108
|
|
6
6
|
mas/cli/install/__init__.py,sha256=tGH_qJ5ZqcSFpIlObRiye3Y-r4zU8rEplYFjwuHwBTY,494
|
|
7
|
-
mas/cli/install/app.py,sha256=
|
|
7
|
+
mas/cli/install/app.py,sha256=SigGUQwmtrxWlm2TJzEW8FJxLyDivSD-0Y3AxcW1odY,55998
|
|
8
8
|
mas/cli/install/argBuilder.py,sha256=kOkoQ5Ksj-SiSr9s3Pjn7tXLY1NYK78hwyAFAU6tGes,22741
|
|
9
9
|
mas/cli/install/argParser.py,sha256=Yin9uxUOAxzfD1kIWehlKNgylle2VCo5YKSI7JpmFHM,26835
|
|
10
10
|
mas/cli/install/summarizer.py,sha256=9dxRDOdGGH4TOsNWAwIigqusqVUMa-R8tj9TPPKTx_4,18907
|
|
@@ -14,7 +14,7 @@ mas/cli/install/settings/db2Settings.py,sha256=mR0XL81Talvwvm1bekw0o9VOwV42QkS0j
|
|
|
14
14
|
mas/cli/install/settings/kafkaSettings.py,sha256=bjAji5OZfSBpttiYHKM5B5Lvva8L8PUzi8QSs6opQcE,6997
|
|
15
15
|
mas/cli/install/settings/manageSettings.py,sha256=TSByaLXVF9hRH0hqhX-eBc7dIHrOf4zgviOq2YrjSHc,13658
|
|
16
16
|
mas/cli/install/settings/turbonomicSettings.py,sha256=eqMDocZxJnGEnWh41Yh8rmmVKVR_JnA8qrbfRrFAOaQ,1588
|
|
17
|
-
mas/cli/templates/ibm-mas-tekton.yaml,sha256=
|
|
17
|
+
mas/cli/templates/ibm-mas-tekton.yaml,sha256=uZQ4L3R0zdV7INdQlOO6ORwCSK8Bgwwat14d_6L8Uc4,727008
|
|
18
18
|
mas/cli/templates/jdbccfg.yml.j2,sha256=cANbwkUkKEPQp-P3_BB_Llbt94457Ciagah2hOdySIM,1644
|
|
19
19
|
mas/cli/templates/pod-templates/best-effort/ibm-data-dictionary-assetdatadictionary.yml,sha256=8VG_FDFcEjWNaAOZTcS58Pe0tWOXC10SJLloNqzEMC8,757
|
|
20
20
|
mas/cli/templates/pod-templates/best-effort/ibm-mas-bascfg.yml,sha256=rkq8c2pVJoskgict9tCZzCchGSE2MBC-dJ47JyMYm7A,1559
|
|
@@ -87,16 +87,16 @@ mas/cli/templates/pod-templates/guaranteed/ibm-mas-suite.yml,sha256=aB-buCWUAqD0
|
|
|
87
87
|
mas/cli/templates/pod-templates/guaranteed/ibm-mas-visualinspection.yml,sha256=NiXBlXKe3j2RvroEcx3kCSuD92G6WB-jcpNAYGAg3T0,1975
|
|
88
88
|
mas/cli/templates/pod-templates/guaranteed/ibm-sls-licenseservice.yml,sha256=CKt1yim4L3ClloVcQDHiXLD8EMvmKXIltmDxJTxNdDs,546
|
|
89
89
|
mas/cli/uninstall/__init__.py,sha256=tGH_qJ5ZqcSFpIlObRiye3Y-r4zU8rEplYFjwuHwBTY,494
|
|
90
|
-
mas/cli/uninstall/app.py,sha256=
|
|
91
|
-
mas/cli/uninstall/argParser.py,sha256=
|
|
90
|
+
mas/cli/uninstall/app.py,sha256=VFF7X8kI6wqmxoyjCXIN6jjcJrVZXtCYA0Guo5wRWME,10072
|
|
91
|
+
mas/cli/uninstall/argParser.py,sha256=5uT2gT8P-wbahtiiI3C1aT1Ygp7E8UM-_G4SR4zcyc4,3451
|
|
92
92
|
mas/cli/update/__init__.py,sha256=tGH_qJ5ZqcSFpIlObRiye3Y-r4zU8rEplYFjwuHwBTY,494
|
|
93
|
-
mas/cli/update/app.py,sha256=
|
|
94
|
-
mas/cli/update/argParser.py,sha256=
|
|
93
|
+
mas/cli/update/app.py,sha256=ToCdWf7xZ6CX2nIaBcqid3W_KAVutR4RoSGCw6kyoSM,37782
|
|
94
|
+
mas/cli/update/argParser.py,sha256=ch0VZhrWLTZzhUAANihUCdkbcyx7rNhc690B9pX-L3U,4710
|
|
95
95
|
mas/cli/upgrade/__init__.py,sha256=tGH_qJ5ZqcSFpIlObRiye3Y-r4zU8rEplYFjwuHwBTY,494
|
|
96
96
|
mas/cli/upgrade/app.py,sha256=AjRI1uCVfl--edonhUb9ZTrp_QifJTQPp-ORT1S_uO8,5375
|
|
97
97
|
mas/cli/upgrade/argParser.py,sha256=jl8SU0mXDMAkpfqXaKE4MPNUmVoD0LSsvMUSJjU1dbQ,1881
|
|
98
|
-
mas_cli-11.
|
|
99
|
-
mas_cli-11.
|
|
100
|
-
mas_cli-11.
|
|
101
|
-
mas_cli-11.
|
|
102
|
-
mas_cli-11.
|
|
98
|
+
mas_cli-11.4.0.data/scripts/mas-cli,sha256=sEPYV6KUzcq4ukiTM4tMLsYKv-d9Ms0aJI9Uhjg_G9Y,3436
|
|
99
|
+
mas_cli-11.4.0.dist-info/METADATA,sha256=RYVDcUYAa6K8yG-gswpBkCYdcf4rSx0H0dCSChxalZ4,2076
|
|
100
|
+
mas_cli-11.4.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
101
|
+
mas_cli-11.4.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
|
|
102
|
+
mas_cli-11.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|