Skip to content

Commit

Permalink
add cmd to check OSD existence
Browse files Browse the repository at this point in the history
  • Loading branch information
bdattoma committed Jan 24, 2025
1 parent 0c4914a commit 5d33237
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ods_ci/utils/scripts/ocm/ocm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,23 @@ def update_ocm_policy(self) -> str | None:
)
hibernate_cluster_parser.set_defaults(func=ocm_obj.hibernate_cluster)

# Argument parsers for fail_if_cluster_exists
cluster_exists_parser = subparsers.add_parser(
"check_cluster_existence",
help="Check if the given managed OpenShift Dedicated v4 clusters exists via OCM.",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
cluster_exists_parser.add_argument(
"--cluster-name",
help="osd cluster name",
action="store",
dest="cluster_name",
metavar="",
default="",
required=True
)
cluster_exists_parser.set_defaults(func=ocm_obj.is_osd_cluster_exists)

# Argument parsers for resume_cluster
resume_cluster_parser = subparsers.add_parser(
"resume_cluster",
Expand Down

0 comments on commit 5d33237

Please sign in to comment.