Skip to content

Commit

Permalink
install MetalLB as part of dependencies (#10836)
Browse files Browse the repository at this point in the history
* install MetalLB as part of dependencies

Signed-off-by: Daniel Horak <dahorak@redhat.com>
  • Loading branch information
dahorak authored Nov 12, 2024
1 parent cb8416c commit 07dd1e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 07dd1e6

Please sign in to comment.