mas-cli 11.13.0__py3-none-any.whl → 12.1.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 +16 -1
- mas/cli/install/app.py +23 -65
- mas/cli/install/catalogs.py +3 -3
- mas/cli/templates/ibm-mas-tekton.yaml +227 -117
- mas/cli/update/app.py +1 -1
- mas/cli/upgrade/app.py +25 -6
- mas/cli/upgrade/argParser.py +6 -1
- {mas_cli-11.13.0.dist-info → mas_cli-12.1.0.dist-info}/METADATA +1 -1
- {mas_cli-11.13.0.dist-info → mas_cli-12.1.0.dist-info}/RECORD +13 -13
- {mas_cli-11.13.0.data → mas_cli-12.1.0.data}/scripts/mas-cli +0 -0
- {mas_cli-11.13.0.dist-info → mas_cli-12.1.0.dist-info}/WHEEL +0 -0
- {mas_cli-11.13.0.dist-info → mas_cli-12.1.0.dist-info}/top_level.txt +0 -0
mas/cli/update/app.py
CHANGED
mas/cli/upgrade/app.py
CHANGED
|
@@ -22,7 +22,7 @@ from ..validators import InstanceIDValidator
|
|
|
22
22
|
from .argParser import upgradeArgParser
|
|
23
23
|
|
|
24
24
|
from mas.devops.ocp import createNamespace
|
|
25
|
-
from mas.devops.mas import listMasInstances,
|
|
25
|
+
from mas.devops.mas import listMasInstances, getMasChannel
|
|
26
26
|
from mas.devops.tekton import installOpenShiftPipelines, updateTektonDefinitions, launchUpgradePipeline
|
|
27
27
|
|
|
28
28
|
logger = logging.getLogger(__name__)
|
|
@@ -37,6 +37,8 @@ class UpgradeApp(BaseApp):
|
|
|
37
37
|
instanceId = args.mas_instance_id
|
|
38
38
|
self.noConfirm = args.no_confirm
|
|
39
39
|
self.skipPreCheck = args.skip_pre_check
|
|
40
|
+
self.licenseAccepted = args.accept_license
|
|
41
|
+
next_mas_channel = None
|
|
40
42
|
|
|
41
43
|
if instanceId is None:
|
|
42
44
|
self.printH1("Set Target OpenShift Cluster")
|
|
@@ -67,14 +69,31 @@ class UpgradeApp(BaseApp):
|
|
|
67
69
|
suiteCompleter = WordCompleter(suiteOptions)
|
|
68
70
|
print()
|
|
69
71
|
instanceId = prompt(HTML('<Yellow>Enter MAS instance ID: </Yellow>'), completer=suiteCompleter, validator=InstanceIDValidator(), validate_while_typing=False)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
|
|
73
|
+
current_mas_channel = getMasChannel(self.dynamicClient, instanceId)
|
|
74
|
+
|
|
75
|
+
if current_mas_channel not in self.upgrade_path:
|
|
76
|
+
self.fatalError(f"No upgrade available, {instanceId} is are already on the latest release {current_mas_channel}")
|
|
77
|
+
|
|
78
|
+
next_mas_channel = self.upgrade_path[current_mas_channel]
|
|
79
|
+
|
|
80
|
+
if not self.licenseAccepted:
|
|
81
|
+
self.printH1("License Terms")
|
|
82
|
+
self.printDescription([
|
|
83
|
+
"To continue with the upgrade, you must accept the license terms:",
|
|
84
|
+
self.licenses[next_mas_channel]
|
|
85
|
+
])
|
|
86
|
+
|
|
87
|
+
if self.noConfirm:
|
|
88
|
+
self.fatalError("You must accept the license terms with --accept-license when using the --no-confirm flag")
|
|
89
|
+
else:
|
|
90
|
+
if not self.yesOrNo("Do you accept the license terms"):
|
|
91
|
+
exit(1)
|
|
75
92
|
|
|
76
93
|
self.printH1("Review Settings")
|
|
77
94
|
print_formatted_text(HTML(f"<LightSlateGrey>Instance ID ..................... {instanceId}</LightSlateGrey>"))
|
|
95
|
+
print_formatted_text(HTML(f"<LightSlateGrey>Current MAS Channel ............. {current_mas_channel}</LightSlateGrey>"))
|
|
96
|
+
print_formatted_text(HTML(f"<LightSlateGrey>Next MAS Channel ................ {next_mas_channel}</LightSlateGrey>"))
|
|
78
97
|
print_formatted_text(HTML(f"<LightSlateGrey>Skip Pre-Upgrade Checks ......... {self.skipPreCheck}</LightSlateGrey>"))
|
|
79
98
|
|
|
80
99
|
if not self.noConfirm:
|
mas/cli/upgrade/argParser.py
CHANGED
|
@@ -32,7 +32,6 @@ masArgGroup.add_argument(
|
|
|
32
32
|
required=False,
|
|
33
33
|
help="The MAS instance ID to be upgraded"
|
|
34
34
|
)
|
|
35
|
-
|
|
36
35
|
otherArgGroup = upgradeArgParser.add_argument_group('More')
|
|
37
36
|
otherArgGroup.add_argument(
|
|
38
37
|
'--skip-pre-check',
|
|
@@ -48,6 +47,12 @@ otherArgGroup.add_argument(
|
|
|
48
47
|
default=False,
|
|
49
48
|
help="Launch the upgrade without prompting for confirmation",
|
|
50
49
|
)
|
|
50
|
+
otherArgGroup.add_argument(
|
|
51
|
+
"--accept-license",
|
|
52
|
+
action="store_true",
|
|
53
|
+
default=False,
|
|
54
|
+
help="Accept all license terms without prompting"
|
|
55
|
+
)
|
|
51
56
|
otherArgGroup.add_argument(
|
|
52
57
|
'-h', "--help",
|
|
53
58
|
action='help',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
mas/cli/__init__.py,sha256=
|
|
2
|
-
mas/cli/cli.py,sha256=
|
|
1
|
+
mas/cli/__init__.py,sha256=WYSU0MV45wJvR2Cf4OZj_ri1t50MpWfvDrWdQM1McsI,526
|
|
2
|
+
mas/cli/cli.py,sha256=0ZAuvGjjcxyV8svC-bsUvBVZBfNLA_cmUwjPWU0J_0g,17484
|
|
3
3
|
mas/cli/displayMixins.py,sha256=e3lAx1DIOwsriDcNI0M2JyP1jeLOZKvId6sPrvWLyqs,5984
|
|
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=fZQLKQYfvinBlnyMt8PQi7Qt4nIn8Atb247bNYT_9r4,55758
|
|
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=ivwWYa8eyfchOAaYxEHNTNsIevosw6Z9EQQ0iHcA3sU,697
|
|
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
|
|
@@ -17,7 +17,7 @@ mas/cli/install/settings/kafkaSettings.py,sha256=oJxFhWQkqPi7Do53tu4oxskGbEL4hro
|
|
|
17
17
|
mas/cli/install/settings/manageSettings.py,sha256=rBBq3r9AaDS5fLeKbItgLBnsguuZwyNKo80oYBBEB-0,16241
|
|
18
18
|
mas/cli/install/settings/mongodbSettings.py,sha256=UVt8vMLNpgyewlcymSystIhICnHsd0uoM9qpgezVjGg,2567
|
|
19
19
|
mas/cli/install/settings/turbonomicSettings.py,sha256=wRAFV0Rg3Em_ILkLd8xR-a_oglXivnVeF6nVI_73Q9o,1695
|
|
20
|
-
mas/cli/templates/ibm-mas-tekton.yaml,sha256=
|
|
20
|
+
mas/cli/templates/ibm-mas-tekton.yaml,sha256=WRCMHV-1nCKFlcgP93syRxtuvAvvJr03fD8N5dCh3vs,797296
|
|
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=onkB2Gn9aJooMQB0AKrGvjN1B7yhajWTGTRdBRiM4I8,37226
|
|
98
98
|
mas/cli/update/argParser.py,sha256=oOIXzB_rsI2p3og_5X5SFt_g7LURyEdLxZeiGCKq1nU,4711
|
|
99
99
|
mas/cli/upgrade/__init__.py,sha256=v0WJlcdrSycWGT5ofFjRDV3jTZ8AqVCz1AGxok4Khtc,508
|
|
100
|
-
mas/cli/upgrade/app.py,sha256=
|
|
101
|
-
mas/cli/upgrade/argParser.py,sha256=
|
|
102
|
-
mas_cli-
|
|
103
|
-
mas_cli-
|
|
104
|
-
mas_cli-
|
|
105
|
-
mas_cli-
|
|
106
|
-
mas_cli-
|
|
100
|
+
mas/cli/upgrade/app.py,sha256=xSM5r-3tE3ohphHvUSsXqRMvnxNFSoy_8-jlQLjLEno,6180
|
|
101
|
+
mas/cli/upgrade/argParser.py,sha256=pqzNDSHy6l13JunHWQLyOI-NFnDGDoVJ_HM07FLYJSc,2033
|
|
102
|
+
mas_cli-12.1.0.data/scripts/mas-cli,sha256=Es-wSefTBcR3Vs5_kIUHQLfWHxTXVrmIPMFY0hbrxt8,3493
|
|
103
|
+
mas_cli-12.1.0.dist-info/METADATA,sha256=UQUNyyzKoA5SrTtn785A_tY3RY6-NDOqKIRMbMn6iGc,2080
|
|
104
|
+
mas_cli-12.1.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
105
|
+
mas_cli-12.1.0.dist-info/top_level.txt,sha256=_Hlsp7pvMvyV14LFg-vk1hULq30j61EILnnxMFIhhc8,4
|
|
106
|
+
mas_cli-12.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|