mas-cli 11.9.0__py3-none-any.whl → 11.9.2__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 +3 -3
- mas/cli/install/argBuilder.py +6 -4
- mas/cli/install/argParser.py +7 -1
- mas/cli/install/params.py +2 -1
- mas/cli/install/summarizer.py +2 -2
- mas/cli/templates/ibm-mas-tekton.yaml +234 -140
- mas/cli/update/app.py +2 -2
- {mas_cli-11.9.0.dist-info → mas_cli-11.9.2.dist-info}/METADATA +1 -1
- {mas_cli-11.9.0.dist-info → mas_cli-11.9.2.dist-info}/RECORD +14 -14
- {mas_cli-11.9.0.data → mas_cli-11.9.2.data}/scripts/mas-cli +0 -0
- {mas_cli-11.9.0.dist-info → mas_cli-11.9.2.dist-info}/WHEEL +0 -0
- {mas_cli-11.9.0.dist-info → mas_cli-11.9.2.dist-info}/top_level.txt +0 -0
mas/cli/__init__.py
CHANGED
mas/cli/cli.py
CHANGED
|
@@ -117,7 +117,7 @@ class BaseApp(PrintMixin, PromptMixin):
|
|
|
117
117
|
logging.getLogger('asyncio').setLevel(logging.INFO)
|
|
118
118
|
|
|
119
119
|
# Supports extended semver, unlike mas.cli.__version__
|
|
120
|
-
self.version = "11.9.
|
|
120
|
+
self.version = "11.9.2"
|
|
121
121
|
self.h1count = 0
|
|
122
122
|
self.h2count = 0
|
|
123
123
|
|
mas/cli/install/app.py
CHANGED
|
@@ -625,8 +625,8 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
625
625
|
self.configCP4D()
|
|
626
626
|
self.promptForString("COS Provider [ibm/ocs]", "cos_type")
|
|
627
627
|
if self.getParam("cos_type") == "ibm":
|
|
628
|
-
self.promptForString("IBM Cloud API Key", "
|
|
629
|
-
self.promptForString("IBM Cloud Resource Group", "
|
|
628
|
+
self.promptForString("IBM Cloud API Key", "cos_apikey", isPassword=True)
|
|
629
|
+
self.promptForString("IBM Cloud Resource Group", "cos_resourcegroup")
|
|
630
630
|
|
|
631
631
|
@logMethodCall
|
|
632
632
|
def chooseInstallFlavour(self) -> None:
|
|
@@ -774,7 +774,7 @@ class InstallApp(BaseApp, InstallSettingsMixin, InstallSummarizerMixin, ConfigGe
|
|
|
774
774
|
elif key == "additional_configs":
|
|
775
775
|
self.localConfigDir = value
|
|
776
776
|
# If there is a file named mongodb-system.yaml we will use this as a BYO MongoDB datasource
|
|
777
|
-
if path.exists(path.join(self.localConfigDir, "mongodb-system.yaml")):
|
|
777
|
+
if self.localConfigDir is not None and path.exists(path.join(self.localConfigDir, "mongodb-system.yaml")):
|
|
778
778
|
self.setParam("mongodb_action", "byo")
|
|
779
779
|
self.setParam("sls_mongodb_cfg_file", "/workspace/additional-configs/mongodb-system.yaml")
|
|
780
780
|
|
mas/cli/install/argBuilder.py
CHANGED
|
@@ -226,10 +226,10 @@ class installArgBuilderMixin():
|
|
|
226
226
|
|
|
227
227
|
# IBM Db2 Universal Operator
|
|
228
228
|
# -----------------------------------------------------------------------------
|
|
229
|
-
if self.getParam('
|
|
230
|
-
if self.getParam('
|
|
229
|
+
if self.getParam('db2_action_system') == "install" or self.getParam('db2_action_manage') == "install":
|
|
230
|
+
if self.getParam('db2_action_system') == "install":
|
|
231
231
|
command += f" --db2-system{newline}"
|
|
232
|
-
if self.getParam('
|
|
232
|
+
if self.getParam('db2_action_manage') == "install":
|
|
233
233
|
command += f" --db2-manage{newline}"
|
|
234
234
|
|
|
235
235
|
if self.getParam('db2_channel') != "":
|
|
@@ -317,8 +317,10 @@ class installArgBuilderMixin():
|
|
|
317
317
|
# -----------------------------------------------------------------------------
|
|
318
318
|
if self.getParam('cos_type') != "":
|
|
319
319
|
command += f" --cos \"{self.getParam('cos_type')}\""
|
|
320
|
-
if self.getParam('
|
|
320
|
+
if self.getParam('cos_resourcegroup') != "":
|
|
321
321
|
command += f" --cos-resourcegroup \"{self.getParam('cos_resourcegroup')}\""
|
|
322
|
+
if self.getParam('cos_apikey') != "":
|
|
323
|
+
command += f" --cos-apikey \"{self.getParam('cos_apikey')}\""
|
|
322
324
|
command += newline
|
|
323
325
|
|
|
324
326
|
# Turbonomic Integration
|
mas/cli/install/argParser.py
CHANGED
|
@@ -917,10 +917,16 @@ cosArgGroup.add_argument(
|
|
|
917
917
|
)
|
|
918
918
|
cosArgGroup.add_argument(
|
|
919
919
|
"--cos-resourcegroup",
|
|
920
|
-
dest="
|
|
920
|
+
dest="cos_resourcegroup",
|
|
921
921
|
required=False,
|
|
922
922
|
help="When using IBM COS, set the resource group where the instance will run"
|
|
923
923
|
)
|
|
924
|
+
cosArgGroup.add_argument(
|
|
925
|
+
"--cos-apikey",
|
|
926
|
+
dest="cos_apikey",
|
|
927
|
+
required=False,
|
|
928
|
+
help="When using IBM COS, set COS priviledged apikey for IBM Cloud"
|
|
929
|
+
)
|
|
924
930
|
|
|
925
931
|
# Turbonomic Integration
|
|
926
932
|
# -----------------------------------------------------------------------------
|
mas/cli/install/params.py
CHANGED
mas/cli/install/summarizer.py
CHANGED
|
@@ -274,8 +274,8 @@ class InstallSummarizerMixin():
|
|
|
274
274
|
self.printH2("Cloud Object Storage")
|
|
275
275
|
if self.getParam("cos_type") != "":
|
|
276
276
|
self.printParamSummary("Type", "cos_type")
|
|
277
|
-
if self.getParam("
|
|
278
|
-
self.printParamSummary("Resource Group", "
|
|
277
|
+
if self.getParam("cos_resourcegroup") != "":
|
|
278
|
+
self.printParamSummary("Resource Group", "cos_resourcegroup")
|
|
279
279
|
else:
|
|
280
280
|
self.printSummary("Type", "None")
|
|
281
281
|
|