Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ocs_ci/deployment/fusion_data_foundation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def deploy(self):
"""
Installs IBM Fusion Data Foundation.
"""
logger.info("Ensuring Local Storage Operator (LSO) is installed")
self.ensure_lso_installed()
logger.info("Installing IBM Fusion Data Foundation")
if self.pre_release:
self.create_image_tag_mirror_set()
Expand All @@ -56,6 +58,17 @@ def deploy(self):
self.verify_fdf_installation()
self.setup_storage()

def ensure_lso_installed(self):
"""
Install LSO operator if its not being installed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Install LSO operator if its not being installed
In the case of LSO is not available - bring catalog for unreleased version and install it.

"""
from ocs_ci.utility.operators import LocalStorageOperator
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This import can be in the start of the modul please


lso_operator = LocalStorageOperator()
if not lso_operator.is_available():
lso_operator.create_catalog()
lso_operator.deploy()

def create_image_tag_mirror_set(self):
"""
Create or update ImageTagMirrorSet.
Expand Down
Loading