From 244fc9ebf6de8242dfc255e7beeda767d485386c Mon Sep 17 00:00:00 2001 From: suchita-g Date: Tue, 14 Nov 2023 19:19:09 +0530 Subject: [PATCH] Added conditional check for HCI client to redefine operator name Signed-off-by: suchita-g Fixes https://github.com/red-hat-storage/ocs-ci/issues/8841 --- ocs_ci/ocs/defaults.py | 1 + ocs_ci/utility/utils.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ocs_ci/ocs/defaults.py b/ocs_ci/ocs/defaults.py index 91444231f60..701e62a22d2 100644 --- a/ocs_ci/ocs/defaults.py +++ b/ocs_ci/ocs/defaults.py @@ -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" diff --git a/ocs_ci/utility/utils.py b/ocs_ci/utility/utils.py index 94b4b97d7dc..0d04a9d2207 100644 --- a/ocs_ci/utility/utils.py +++ b/ocs_ci/utility/utils.py @@ -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(