From 514d8fbc50d7e70e8544563c3c36e1b90fec28e1 Mon Sep 17 00:00:00 2001 From: Pratik Surve Date: Mon, 13 May 2024 10:20:02 +0530 Subject: [PATCH] Skip checking for Gitops config (#9593) Signed-off-by: prsurve --- conf/ocsci/deploy_gitops_operator.yaml | 3 --- ocs_ci/deployment/deployment.py | 10 ++++------ 2 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 conf/ocsci/deploy_gitops_operator.yaml diff --git a/conf/ocsci/deploy_gitops_operator.yaml b/conf/ocsci/deploy_gitops_operator.yaml deleted file mode 100644 index 3afc3c7758c..00000000000 --- a/conf/ocsci/deploy_gitops_operator.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -ENV_DATA: - deploy_gitops_operator: True diff --git a/ocs_ci/deployment/deployment.py b/ocs_ci/deployment/deployment.py index 377796bb73d..54974c1f81e 100644 --- a/ocs_ci/deployment/deployment.py +++ b/ocs_ci/deployment/deployment.py @@ -279,15 +279,13 @@ def do_gitops_deploy(self): Returns: """ - if not config.ENV_DATA.get("deploy_gitops_operator"): - return # Multicluster operations if config.multicluster: - config.switch_acm_ctx() - - self.deploy_gitops_operator() - + acm_indexes = get_all_acm_indexes() + for acm_ctx in acm_indexes: + self.deploy_gitops_operator(switch_ctx=acm_ctx) + config.switch_ctx(get_active_acm_index()) logger.info("Creating GitOps CLuster Resource") run_cmd(f"oc create -f {constants.GITOPS_CLUSTER_YAML}")