mas-cli 10.1.1__py3-none-any.whl → 10.2.1__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.

@@ -0,0 +1,120 @@
1
+ # *****************************************************************************
2
+ # Copyright (c) 2024 IBM Corporation and other Contributors.
3
+ #
4
+ # All rights reserved. This program and the accompanying materials
5
+ # are made available under the terms of the Eclipse Public License v1.0
6
+ # which accompanies this distribution, and is available at
7
+ # http://www.eclipse.org/legal/epl-v10.html
8
+ #
9
+ # *****************************************************************************
10
+
11
+ import argparse
12
+
13
+ from .. import __version__ as packageVersion
14
+ from ..cli import getHelpFormatter
15
+
16
+ updateArgParser = argparse.ArgumentParser(
17
+ prog='mas update',
18
+ description="\n".join([
19
+ f"IBM Maximo Application Suite Admin CLI v{packageVersion}",
20
+ "Update the IBM Maximo Operator Catalog, and related MAS dependencies by configuring and launching the MAS Update Tekton Pipeline.\n",
21
+ "Interactive Mode:",
22
+ "Omitting the --catalog option will trigger an interactive prompt"
23
+ ]),
24
+ epilog="Refer to the online documentation for more information: https://ibm-mas.github.io/cli/",
25
+ formatter_class=getHelpFormatter(),
26
+ add_help=False
27
+ )
28
+
29
+ masArgGroup = updateArgParser.add_argument_group('Catalog Selection')
30
+ masArgGroup.add_argument(
31
+ '-c', '--catalog',
32
+ dest='mas_catalog_version',
33
+ required=False,
34
+ help="Maximo Operator Catalog Version (e.g. v9-240625-amd64)"
35
+ )
36
+
37
+ depsArgGroup = updateArgParser.add_argument_group('Update Dependencies')
38
+ depsArgGroup.add_argument(
39
+ '--db2-namespace',
40
+ required=False,
41
+ help="Namespace where Db2u operator and instances will be updated",
42
+ )
43
+
44
+ depsArgGroup.add_argument(
45
+ '--mongodb-namespace',
46
+ required=False,
47
+ help="Namespace where MongoCE operator and instances will be updated",
48
+ )
49
+
50
+ depsArgGroup.add_argument(
51
+ '--mongodb-v5-upgrade',
52
+ required=False,
53
+ action="store_const",
54
+ const="true",
55
+ help="Required to confirm a major version update for MongoDb to version 5",
56
+ )
57
+
58
+ depsArgGroup.add_argument(
59
+ '--mongodb-v6-upgrade',
60
+ required=False,
61
+ action="store_const",
62
+ const="true",
63
+ help="Required to confirm a major version update for MongoDb to version 6",
64
+ )
65
+
66
+ depsArgGroup.add_argument(
67
+ '--kafka-namespace',
68
+ required=False,
69
+ help="Namespace where Kafka operator and instances will be updated",
70
+ )
71
+
72
+ depsArgGroup.add_argument(
73
+ '--kafka-provider',
74
+ required=False,
75
+ choices=["redhat", "strimzi"],
76
+ help="The type of Kakfa operator installed in the target namespace for updte",
77
+ )
78
+
79
+ droArgGroup = updateArgParser.add_argument_group('UDS to DRO Migration')
80
+
81
+ droArgGroup.add_argument(
82
+ '--dro-migration',
83
+ required=False,
84
+ help="Required to confirm the migration from IBM User Data Services (UDS) to IBM Data Reporter Operator (DRO)",
85
+ )
86
+
87
+ droArgGroup.add_argument(
88
+ '--dro-storage-class',
89
+ required=False,
90
+ help="Set Custom RWO Storage Class name for DRO as part of the update",
91
+ )
92
+
93
+ droArgGroup.add_argument(
94
+ '--dro-namespace',
95
+ required=False,
96
+ help="Set Custom Namespace for DRO(Default: redhat-marketplace)",
97
+ )
98
+
99
+
100
+ otherArgGroup = updateArgParser.add_argument_group('More')
101
+ otherArgGroup.add_argument(
102
+ '--no-confirm',
103
+ required=False,
104
+ action='store_true',
105
+ default=False,
106
+ help="Launch the upgrade without prompting for confirmation",
107
+ )
108
+ otherArgGroup.add_argument(
109
+ '--skip-pre-check',
110
+ required=False,
111
+ action='store_true',
112
+ default=False,
113
+ help="Skips the 'pre-update-check' and 'post-update-verify' tasks in the update pipeline",
114
+ )
115
+ otherArgGroup.add_argument(
116
+ '-h', "--help",
117
+ action='help',
118
+ default=False,
119
+ help="Show this help message and exit",
120
+ )
@@ -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.update.app import UpdateApp
18
19
  from mas.cli.upgrade.app import UpgradeApp
19
20
  from mas.cli.uninstall.app import UninstallApp
20
21
 
@@ -36,9 +37,11 @@ def usage():
36
37
  print("")
37
38
  print_formatted_text(HTML(
38
39
  "<b>MAS Management Actions:</b>\n"+
39
- " - <ForestGreen>mas-cli install</ForestGreen> Install a MAS instance\n"+
40
- " - <ForestGreen>mas-cli upgrade</ForestGreen> Upgrade a MAS instance\n"+
41
- " - <ForestGreen>mas-cli uninstall</ForestGreen> Uninstall a MAS instance\n"
40
+ " - <ForestGreen>mas-cli install</ForestGreen> Install IBM Maximo Application Suite\n"+
41
+ " - <ForestGreen>mas-cli update</ForestGreen> Apply updates and security fixes\n"+
42
+ " - <ForestGreen>mas-cli upgrade</ForestGreen> Upgrade to a new MAS release\n"+
43
+ " - <ForestGreen>mas-cli uninstall</ForestGreen> Remove MAS from the cluster\n"
44
+
42
45
  ))
43
46
  print_formatted_text(HTML("For usage information run <ForestGreen>mas-cli [action] --help</ForestGreen>\n"))
44
47
 
@@ -52,6 +55,9 @@ if __name__ == '__main__':
52
55
  elif function == "uninstall":
53
56
  app = UninstallApp()
54
57
  app.uninstall(argv[2:])
58
+ elif function == "update":
59
+ app = UpdateApp()
60
+ app.update(argv[2:])
55
61
  elif function == "upgrade":
56
62
  app = UpgradeApp()
57
63
  app.upgrade(argv[2:])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mas-cli
3
- Version: 10.1.1
3
+ Version: 10.2.1
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
@@ -1,19 +1,19 @@
1
- mas/cli/__init__.py,sha256=b06fZAtucW_FysYTbMo5MjyJtfEAyDu0kfhQXt4a_G8,491
2
- mas/cli/cli.py,sha256=hbeCvE6dKljR3u-C207RPmSGY5H-B4fY3sQrPohABz0,8521
3
- mas/cli/displayMixins.py,sha256=aIpqoedzKJfaaE8C8FlEvxfWTVahL261rjzPZhdT5q8,5117
1
+ mas/cli/__init__.py,sha256=ayGeWbr5o186DPWmqmgMd5nPoJC55OBzd5DYTyJ1TBg,491
2
+ mas/cli/cli.py,sha256=nwl6KAHyGo_JqpkJ9tYk0LP8fmiFVk0JHR2LjjqVzy8,8730
3
+ mas/cli/displayMixins.py,sha256=nyfZP9xqrg9L0mPPxLF7nbWvpp59wo0aDHupDX2UKdQ,5493
4
4
  mas/cli/gencfg.py,sha256=57ik5x73gQBFXPl_8h2byXmV_vhCgxfeSDZk4Wg5-Pw,2102
5
5
  mas/cli/validators.py,sha256=5QwiDQn2EIqJABJyDbHGGaSvlkE38IeJ98d1Czz682A,4550
6
6
  mas/cli/install/__init__.py,sha256=tGH_qJ5ZqcSFpIlObRiye3Y-r4zU8rEplYFjwuHwBTY,494
7
- mas/cli/install/app.py,sha256=JLoouIIIgvxNal7Yw3BWQmH7BTP358lERYXD3YgoyJ8,45771
8
- mas/cli/install/argParser.py,sha256=1H3eQ_ng-q8XfMVRgmKDBHh0hSYOr0FPjWIVhNUy7DM,18764
9
- mas/cli/install/summarizer.py,sha256=e5jPnitbFZJTjJJL0wPlWTSTCoNuBF-9jF08bDfgxy8,17775
7
+ mas/cli/install/app.py,sha256=tgEEucc_fAOqQGJKz7XC4PSmU4zc2ohWVJREA-HlWD8,46430
8
+ mas/cli/install/argParser.py,sha256=Rdt72NjFsPeyaYHRL6hz5j0sL4W5lZPPrLZt2yzS_M4,23341
9
+ mas/cli/install/summarizer.py,sha256=ydOnkiRmj3nPPcE9ZHNxHDMMgii_VYHKnyXV4JbVQ7s,18046
10
10
  mas/cli/install/settings/__init__.py,sha256=eGdNVHVALUxJlZyGYkBet8LbHvVfa-1UjL_8Zl3d-lY,953
11
- mas/cli/install/settings/additionalConfigs.py,sha256=YNEISHlFNXnhX1gwFSVG3OBdHsuT9OJ5oZRTC7RqSVI,6800
11
+ mas/cli/install/settings/additionalConfigs.py,sha256=-qn25IExNGDJ_VLTH1EmgPrFrIE3JFZ3MMb0RlTzVOg,9651
12
12
  mas/cli/install/settings/db2Settings.py,sha256=mR0XL81Talvwvm1bekw0o9VOwV42QkS0jMyp055bx5U,10713
13
13
  mas/cli/install/settings/kafkaSettings.py,sha256=bjAji5OZfSBpttiYHKM5B5Lvva8L8PUzi8QSs6opQcE,6997
14
14
  mas/cli/install/settings/manageSettings.py,sha256=3HtyR6-DKiKQDFTWnnxAr5OmkfqKwjI4xnBaAcAjOCI,13229
15
15
  mas/cli/install/settings/turbonomicSettings.py,sha256=OC-sn6_Z6MAq0kf33OC3c96gqT8FT4P7A51PenPiCXw,1368
16
- mas/cli/templates/ibm-mas-tekton.yaml,sha256=RoNmlyxE0hL_hc2lxp__iqBYIxiwtu-UCEi1wnOEKPg,337583
16
+ mas/cli/templates/ibm-mas-tekton.yaml,sha256=kbalxZ23E07nzsPJr7V1VspdxyEEdD08_YMaMJXDms4,338194
17
17
  mas/cli/templates/jdbccfg.yml.j2,sha256=cANbwkUkKEPQp-P3_BB_Llbt94457Ciagah2hOdySIM,1644
18
18
  mas/cli/templates/pod-templates/best-effort/ibm-data-dictionary-assetdatadictionary.yml,sha256=8VG_FDFcEjWNaAOZTcS58Pe0tWOXC10SJLloNqzEMC8,757
19
19
  mas/cli/templates/pod-templates/best-effort/ibm-mas-bascfg.yml,sha256=rkq8c2pVJoskgict9tCZzCchGSE2MBC-dJ47JyMYm7A,1559
@@ -89,11 +89,14 @@ mas/cli/templates/pod-templates/saas-essentials/ibm-mas-visualinspection.yml,sha
89
89
  mas/cli/uninstall/__init__.py,sha256=tGH_qJ5ZqcSFpIlObRiye3Y-r4zU8rEplYFjwuHwBTY,494
90
90
  mas/cli/uninstall/app.py,sha256=Sbv-xqUUdIOerkSw3pz8wo3u7_KmgmwwRFEB8UP3uFU,9934
91
91
  mas/cli/uninstall/argParser.py,sha256=VO6_u8Qv_munelgZMxBw9mdJBwF_9j688b6nUxQD2RM,3298
92
+ mas/cli/update/__init__.py,sha256=tGH_qJ5ZqcSFpIlObRiye3Y-r4zU8rEplYFjwuHwBTY,494
93
+ mas/cli/update/app.py,sha256=f0mRshZ9f6U3FeF78xjf_wEWfdq8EmXtLB2eB3km4a4,36377
94
+ mas/cli/update/argParser.py,sha256=k9-2i6KRvU4gxkiHJTgtjh1IkDaaLzgisrZe6-JORJA,3641
92
95
  mas/cli/upgrade/__init__.py,sha256=tGH_qJ5ZqcSFpIlObRiye3Y-r4zU8rEplYFjwuHwBTY,494
93
96
  mas/cli/upgrade/app.py,sha256=lxMZYlO_sybzbOuZ4D7R0OCjGqnMg3MF1h2vSVZ1YmE,5328
94
97
  mas/cli/upgrade/argParser.py,sha256=jl8SU0mXDMAkpfqXaKE4MPNUmVoD0LSsvMUSJjU1dbQ,1881
95
- mas_cli-10.1.1.data/scripts/mas-cli,sha256=txiATjPf7E0yCW-2C7VdRA8HSv_SQ52osZkvt_z_QJc,3166
96
- mas_cli-10.1.1.dist-info/METADATA,sha256=rRbVPda9HnZv9IJYZSS0rGKYWoMYSgReBxboEo_DANE,2076
97
- mas_cli-10.1.1.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
98
- mas_cli-10.1.1.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
99
- mas_cli-10.1.1.dist-info/RECORD,,
98
+ mas_cli-10.2.1.data/scripts/mas-cli,sha256=2fU-juOhSGp1v2NiBmAsvAaaJLFJPBp7dlflgzA9yNk,3423
99
+ mas_cli-10.2.1.dist-info/METADATA,sha256=zd87jn2IKdZJ7G7lsCrajlSoHZcPJVPfm0ykJFBBrK0,2076
100
+ mas_cli-10.2.1.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
101
+ mas_cli-10.2.1.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
102
+ mas_cli-10.2.1.dist-info/RECORD,,