mas-cli 10.9.1__py3-none-any.whl → 11.0.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 +13 -1
- mas/cli/install/argBuilder.py +3 -0
- mas/cli/install/argParser.py +10 -1
- mas/cli/templates/ibm-mas-tekton.yaml +234 -128
- mas/cli/update/app.py +1 -0
- mas/cli/update/argParser.py +8 -0
- {mas_cli-10.9.1.dist-info → mas_cli-11.0.0.dist-info}/METADATA +1 -1
- {mas_cli-10.9.1.dist-info → mas_cli-11.0.0.dist-info}/RECORD +13 -13
- {mas_cli-10.9.1.dist-info → mas_cli-11.0.0.dist-info}/WHEEL +1 -1
- {mas_cli-10.9.1.data → mas_cli-11.0.0.data}/scripts/mas-cli +0 -0
- {mas_cli-10.9.1.dist-info → mas_cli-11.0.0.dist-info}/top_level.txt +0 -0
mas/cli/__init__.py
CHANGED
mas/cli/cli.py
CHANGED
mas/cli/install/app.py
CHANGED
|
@@ -185,6 +185,10 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
185
185
|
self.printH1("Configure MongoDb")
|
|
186
186
|
self.promptForString("Install namespace", "mongodb_namespace", default="mongoce")
|
|
187
187
|
|
|
188
|
+
def configSpecialCharacters(self):
|
|
189
|
+
self.printH1("Configure special characters for userID and username")
|
|
190
|
+
self.yesOrNo("Do you want to allow special characters for user IDs and usernames?", "mas_special_characters")
|
|
191
|
+
|
|
188
192
|
def configCP4D(self):
|
|
189
193
|
if self.getParam("mas_catalog_version") in ["v9-240625-amd64", "v9-240730-amd64", "v9-240827-amd64"]:
|
|
190
194
|
logger.debug(f"Using automatic CP4D product version: {self.getParam('cpd_product_version')}")
|
|
@@ -261,6 +265,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
261
265
|
self.configCATrust()
|
|
262
266
|
self.configDNSAndCerts()
|
|
263
267
|
self.configSSOProperties()
|
|
268
|
+
self.configSpecialCharacters()
|
|
264
269
|
self.configGuidedTour()
|
|
265
270
|
|
|
266
271
|
def configCATrust(self) -> None:
|
|
@@ -282,6 +287,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
282
287
|
])
|
|
283
288
|
self.operationalMode = self.promptForInt("Operational Mode", default=1)
|
|
284
289
|
|
|
290
|
+
def configAnnotations(self):
|
|
285
291
|
if self.operationalMode == 2:
|
|
286
292
|
self.setParam("mas_annotations", "mas.ibm.com/operationalMode=nonproduction")
|
|
287
293
|
|
|
@@ -745,7 +751,9 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
745
751
|
"install_arcgis",
|
|
746
752
|
"mas_arcgis_channel",
|
|
747
753
|
# Guided Tour
|
|
748
|
-
"mas_enable_walkme"
|
|
754
|
+
"mas_enable_walkme",
|
|
755
|
+
# Special chars
|
|
756
|
+
"mas_special_characters"
|
|
749
757
|
]
|
|
750
758
|
|
|
751
759
|
for key, value in vars(self.args).items():
|
|
@@ -780,6 +788,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
780
788
|
self.operationalMode = 1
|
|
781
789
|
else:
|
|
782
790
|
self.operationalMode = 2
|
|
791
|
+
self.setParam("mas_annotations", "mas.ibm.com/operationalMode=nonproduction")
|
|
783
792
|
|
|
784
793
|
elif key == "additional_configs":
|
|
785
794
|
self.localConfigDir = value
|
|
@@ -1076,6 +1085,9 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
1076
1085
|
self.buildCommand()
|
|
1077
1086
|
])
|
|
1078
1087
|
|
|
1088
|
+
# Based on the parameters set the annotations correctly
|
|
1089
|
+
self.configAnnotations()
|
|
1090
|
+
|
|
1079
1091
|
self.displayInstallSummary()
|
|
1080
1092
|
|
|
1081
1093
|
if not self.noConfirm:
|
mas/cli/install/argBuilder.py
CHANGED
|
@@ -60,6 +60,9 @@ class installArgBuilderMixin():
|
|
|
60
60
|
command += f" --mas-workspace-id {self.getParam('mas_workspace_id')}"
|
|
61
61
|
command += f" --mas-workspace-name \"{self.getParam('mas_workspace_name')}\"{newline}"
|
|
62
62
|
|
|
63
|
+
if self.getParam('mas_special_characters') == "true":
|
|
64
|
+
command += f" --allow-special-chars \"{self.getParam('mas_special_characters')}\"{newline}"
|
|
65
|
+
|
|
63
66
|
# ECK Integration
|
|
64
67
|
# -----------------------------------------------------------------------------
|
|
65
68
|
if self.getParam('eck_action') == "install":
|
mas/cli/install/argParser.py
CHANGED
|
@@ -75,7 +75,16 @@ masArgGroup.add_argument(
|
|
|
75
75
|
required=False,
|
|
76
76
|
help="Subscription channel for the Core Platform"
|
|
77
77
|
)
|
|
78
|
-
|
|
78
|
+
# MAS Special characters
|
|
79
|
+
# -----------------------------------------------------------------------------
|
|
80
|
+
masSpecialCharacters = installArgParser.add_argument_group("Mas Special Characters")
|
|
81
|
+
masSpecialCharacters.add_argument(
|
|
82
|
+
"--allow-special-chars",
|
|
83
|
+
dest="mas_special_characters",
|
|
84
|
+
required=False,
|
|
85
|
+
help="Allow special chars for users username/ID",
|
|
86
|
+
action="store_true"
|
|
87
|
+
)
|
|
79
88
|
# ECK Integration
|
|
80
89
|
# -----------------------------------------------------------------------------
|
|
81
90
|
eckArgGroup = installArgParser.add_argument_group("ECK Integration")
|