From 07dd1e698867977d7365823fe29901012132eaf0 Mon Sep 17 00:00:00 2001 From: dahorak Date: Tue, 12 Nov 2024 14:12:54 +0100 Subject: [PATCH] install MetalLB as part of dependencies (#10836) * install MetalLB as part of dependencies Signed-off-by: Daniel Horak --- ocs_ci/deployment/deployment.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ocs_ci/deployment/deployment.py b/ocs_ci/deployment/deployment.py index a8e227cb0e0..9fb072756ad 100644 --- a/ocs_ci/deployment/deployment.py +++ b/ocs_ci/deployment/deployment.py @@ -36,6 +36,7 @@ ) from ocs_ci.deployment.disconnected import prepare_disconnected_ocs_deployment from ocs_ci.deployment.encryption import add_in_transit_encryption_to_cluster_data +from ocs_ci.deployment.metallb import MetalLBInstaller from ocs_ci.framework import config, merge_dict from ocs_ci.framework.logger_helper import log_step from ocs_ci.helpers.dr_helpers import ( @@ -611,6 +612,13 @@ def do_deploy_cnv(self): ): CNVInstaller().deploy_cnv() + def do_deploy_metallb(self): + """ + Deploy MetalLB + """ + if config.DEPLOYMENT.get("metallb_operator"): + MetalLBInstaller().deploy_lb() + def do_deploy_hosted_clusters(self): """ Deploy Hosted cluster(s) @@ -701,6 +709,7 @@ def deploy_cluster(self, log_cli_level="DEBUG"): self.do_deploy_fdf() self.do_deploy_odf_provider_mode() self.do_deploy_cnv() + self.do_deploy_metallb() self.do_deploy_hosted_clusters() def get_rdr_conf(self):