Skip to content

Commit

Permalink
[patch] Fix Non-Interactive Support for Health WSL (#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
unnati-solanki-git authored Jan 27, 2025
1 parent ae727a3 commit 6b00a4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/src/mas/cli/install/argBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ def buildCommand(self) -> str:
if self.getParam('mas_manage_attachment_configuration_mode') != "":
command += f" --manage-attachments-mode \"{self.getParam('mas_manage_attachment_configuration_mode')}\"{newline}"

if self.getParam('mas_appws_bindings_health_wsl_flag') == "true":
command += f" --manage-health-wsl{newline}"

# IBM Cloud Pak for Data
# -----------------------------------------------------------------------------
if self.getParam('cpd_product_version') != "":
Expand Down
9 changes: 9 additions & 0 deletions python/src/mas/cli/install/argParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,15 @@ def isValidFile(parser, arg) -> str:
default="base=latest,health=latest"
)

manageArgGroup.add_argument(
"--manage-health-wsl",
dest="mas_appws_bindings_health_wsl_flag",
required=False,
help="Set boolean value indicating if Watson Studio must be bound to Manage. It is expected a system level WatsonStudioCfg applied in the cluster.",
action="store_const",
const="true"
)

manageArgGroup.add_argument(
"--manage-customization-archive-name",
dest="mas_app_settings_customization_archive_name",
Expand Down
1 change: 1 addition & 0 deletions python/src/mas/cli/install/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"mas_app_settings_server_timezone",
"mas_appws_bindings_jdbc_manage",
"mas_appws_components",
"mas_appws_bindings_health_wsl_flag",
"mas_domain",
# SLS
"sls_namespace",
Expand Down

0 comments on commit 6b00a4c

Please sign in to comment.