From 2250b234f21fbb850916e94fd6b8a919156477da Mon Sep 17 00:00:00 2001 From: Amrita Mahapatra <49347640+amr1ta@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:02:27 +0530 Subject: [PATCH] Corrected typo Signed-off-by: Amrita Mahapatra <49347640+amr1ta@users.noreply.github.com> --- ocs_ci/deployment/mce.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/ocs_ci/deployment/mce.py b/ocs_ci/deployment/mce.py index 7736a632017..ed78f83e66d 100644 --- a/ocs_ci/deployment/mce.py +++ b/ocs_ci/deployment/mce.py @@ -66,18 +66,10 @@ def create_mce_catalog_source(self): resource_name=constants.MCE_CATSRC_NAME, namespace=constants.MARKETPLACE_NAMESPACE, ) + # Wait for catalog source is ready + mce_catalog_source.wait_for_state("READY") else: logger.info("catalogsource exists") - logger.info("Check the image for MCE") - if not mce_catalog_source_data["spec"]["image"] == config.ENV_DATA.get( - "mce_image" - ): - mce_catalog_source_data["spec"]["image"] = config.ENV_DATA.get( - "mce_image" - ) - - # Wait for catalog source is ready - mce_catalog_source.wait_for_state("READY") def create_mce_namespace(self): """ @@ -128,9 +120,11 @@ def create_mce_subscription(self): mce_subscription_yaml_data["spec"][ "source" ] = constants.OPERATOR_CATALOG_SOURCE_NAME - mce_sub_channel = "stable-2.7" + mce_channel = "stable" + else: + mce_channel = config.DEPLOYMENT.get("mce_channel") - mce_subscription_yaml_data["spec"]["channel"] = f"{mce_sub_channel}" + mce_subscription_yaml_data["spec"]["channel"] = mce_channel mce_subscription_manifest = tempfile.NamedTemporaryFile( mode="w+", prefix="mce_subscription_manifest", delete=False )