Skip to content

Commit

Permalink
Added conditional check for HCI client to redefine operator name
Browse files Browse the repository at this point in the history
Signed-off-by: suchita-g <[email protected]>
Fixes #8841
  • Loading branch information
suchita-g committed Nov 14, 2023
1 parent 56e9c8b commit 244fc9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ocs_ci/ocs/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

OCS_OPERATOR_NAME = "ocs-operator"
ODF_OPERATOR_NAME = "odf-operator"
HCI_CLIENT_ODF_OPERATOR_NAME = "ocs-client-operator"
NOOBAA_OPERATOR = "noobaa-operator"
MCG_OPERATOR = "mcg-operator"
ODF_CSI_ADDONS_OPERATOR = "odf-csi-addons-operator"
Expand Down
5 changes: 5 additions & 0 deletions ocs_ci/utility/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,11 @@ def get_ocs_build_number():
>= version_module.VERSION_4_9
):
operator_name = defaults.ODF_OPERATOR_NAME
if (
config.ENV_DATA.get("platform") in constants.HCI_PROVIDER_CLIENT_PLATFORMS
and config.ENV_DATA.get("cluster_type") == "hci_client"
):
operator_name = defaults.HCI_CLIENT_ODF_OPERATOR_NAME
else:
operator_name = defaults.OCS_OPERATOR_NAME
ocs_csvs = get_csvs_start_with_prefix(
Expand Down

0 comments on commit 244fc9e

Please sign in to comment.