Skip to content

Commit

Permalink
Merge pull request red-hat-storage#10413 from dahorak/configure-osd-s…
Browse files Browse the repository at this point in the history
…ize-for-ibm-cloud-managed

Allow osd_size configuration for IBM Cloud Managed clusters
  • Loading branch information
petr-balogh committed Sep 4, 2024
2 parents a5d49f9 + 3b3b77f commit 7cef9c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1657,9 +1657,11 @@ 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()}"
device_size = int(config.ENV_DATA.get("device_size", defaults.DEVICE_SIZE))
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}"
f"{ocs_version}.0 {noobaa_cmd_arg} {osd_size_arg}"
)
run_ibmcloud_cmd(cmd)
time.sleep(120)
Expand Down

0 comments on commit 7cef9c8

Please sign in to comment.