Skip to content

Commit

Permalink
Add --acm-version CLI option
Browse files Browse the repository at this point in the history
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
  • Loading branch information
shylesh authored and amr1ta committed Oct 8, 2024
1 parent 7fc0139 commit 2e394da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ higher priority).
* `skip_ocp_deployment` - Skip the OCP deployment step or not (Default: false)
* `skip_ocs_deployment` - Skip the OCS deployment step or not (Default: false)
* `ocs_version` - Version of OCS that is being deployed
* `acm_version` - Version of acm to be used for this run (applicable mostly to DR scenarios)
* `vm_template` - VMWare template to use for RHCOS images
* `fio_storageutilization_min_mbps` - Minimal write speed of FIO used in workload_fio_storageutilization
* `TF_LOG_LEVEL` - Terraform log level
Expand Down
8 changes: 8 additions & 0 deletions ocs_ci/framework/pytest_customization/ocscilib.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ def pytest_addoption(parser):
"(e.g. quay.io/rhceph-dev/ocs-olm-operator:latest-4.3)"
),
)
parser.addoption(
"--acm-version",
dest="acm_version",
help="acm version(e.g. 2.8) to be used for the current run",
)
parser.addoption(
"--upgrade-acm-version",
dest="upgrade_acm_version",
Expand Down Expand Up @@ -670,6 +675,9 @@ def process_cluster_cli_params(config):
if custom_kubeconfig_location:
os.environ["KUBECONFIG"] = custom_kubeconfig_location
ocsci_config.RUN["kubeconfig"] = custom_kubeconfig_location
acm_version = get_cli_param(config, "--acm-version")
if acm_version:
ocsci_config.ENV_DATA["acm_version"] = acm_version
upgrade_acm_version = get_cli_param(config, "--upgrade-acm-version")
if upgrade_acm_version:
ocsci_config.UPGRADE["upgrade_acm_version"] = upgrade_acm_version
Expand Down

0 comments on commit 2e394da

Please sign in to comment.