testshift.resources.ds
¶
Module Contents¶
-
class
testshift.resources.ds.
DS
(name, namespace=None)¶ Bases:
testshift.resources.base.Resource
DS class instantiates a single OCP DaemonSet resource.
- Parameters
name (str) – PersistentVolume’s name as found in Metadata.
- Raises
ResourceNotFoundException – When OCP API returns resource not found.
Examples
>>> ds = DS("linuxptp-daemon") >>> ds.exists True >>> ds.desired 5 >>> pv.ready 5
-
property
exists
(self)¶ bool: Whether daemonsets were found or not.
-
property
desired
(self)¶ int: Number of desired scheduled replicas.
-
property
current
(self)¶ int: Number of the current scheduled replicas.
-
property
ready
(self)¶ int: Number of replicas in ready state.
-
property
available
(self)¶ int: Number of replicas in available state.