Skip to content

Commit

Permalink
Enable disaster recovery for IBM Cloud ROKS ODF add-on
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Balogh <[email protected]>
  • Loading branch information
petr-balogh committed Dec 17, 2024
1 parent e062a87 commit 85d35c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,9 @@ def deploy_odf_addon(self):
ocs_version = version.get_semantic_ocs_version_from_config()
disable_noobaa = config.COMPONENTS.get("disable_noobaa", False)
noobaa_cmd_arg = f"--param ignoreNoobaa={str(disable_noobaa).lower()}"
dr_cmd_arg = ""
if config.MULTICLUSTER.get("multicluster_mode") == constants.RDR_MODE:
dr_cmd_arg = "--param prepareForDisasterRecovery=true"
device_size = int(
config.ENV_DATA.get("device_size", defaults.DEVICE_SIZE_IBM_CLOUD_MANAGED)
)
Expand All @@ -1665,7 +1668,7 @@ def deploy_odf_addon(self):
osd_size_arg = f"--param osdSize={device_size}Gi"
cmd = (
f"ibmcloud ks cluster addon enable openshift-data-foundation --cluster {clustername} -f --version "
f"{ocs_version}.0 {noobaa_cmd_arg} {osd_size_arg}"
f"{ocs_version}.0 {noobaa_cmd_arg} {osd_size_arg} {dr_cmd_arg}"
)
run_ibmcloud_cmd(cmd)
time.sleep(120)
Expand Down

0 comments on commit 85d35c2

Please sign in to comment.