testshift.resources.mcp
¶
Module Contents¶
-
class
testshift.resources.mcp.
Mcp
(name)¶ Bases:
testshift.resources.base.Resource
Mcp class instantiates an OCP MachineConfigPool resource.
- Parameters
name (str) – Deployment’s name as found in deployment.metadata.
- Raises
ResourceNotFoundException – When OCP API returns resource not found.
Examples
>>> mcp = Mcp(name="worker-cnf") >>> mcp.exists True >>> mcp.updated_machine_count 3
-
property
exists
(self)¶ bool: Return True if the MCP has been found.
-
property
machine_count
(self)¶ bool: Return the total number of machines in the machine config pool.
-
property
updated_machine_count
(self)¶ int: Return the total number of machines targeted by the pool that have the CurrentMachineConfig as their config.
-
property
ready_machine_count
(self)¶ int: Return the total number of ready machines targeted by the pool.
-
property
paused
(self)¶ bool: Return whether the MCP is paused.
-
property
name
(self)¶ str: Return MCP’s name as found in its metadata.