Skip to content
Open
Changes from all 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
10 changes: 10 additions & 0 deletions src/assisted_test_infra/test_infra/helper_classes/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,16 @@ def set_olm_operator(self, operator_name, properties=None, update=False):
self._config.olm_operators = olm_operators
self.api_client.update_cluster(self.id, {"olm_operators": olm_operators})

def set_virt_bundle(self):
log.info(f"Setting virtualization bundle for cluster: {self.id}")
self.set_olm_operator("mtv")
self.set_olm_operator("nmstate")
self.set_olm_operator("node-healthcheck")
self.set_olm_operator("fence-agents-remediation")
self.set_olm_operator("kube-descheduler")
self.set_olm_operator("self-node-remediation")
self.set_olm_operator("node-maintenance")

Copy link
Contributor

Choose a reason for hiding this comment

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

@eliajahshan , yes we can use it and it will be managed here when something change... i think you can use const.OperatorType as naming.

@danmanor Is it ok ? we are going to switch to bundles

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, have to tested it @eliajahshan ?

def set_host_roles(self, num_masters: int = None, num_workers: int = None, requested_roles=None):
if requested_roles is None:
requested_roles = Counter(
Expand Down