MODULE

PYTEST_HELM_CHARTS.K8S.DAEMON_SET

Functions
  • wait_for_daemon_sets_to_run(kube_client, daemon_set_names, daemon_sets_namespace, timeout_sec, missing_ok) (list of DaemonSet) Block until all the DaemonSets are running or timeout is reached.</>
function

pytest_helm_charts.k8s.daemon_set.wait_for_daemon_sets_to_run(kube_client, daemon_set_names, daemon_sets_namespace, timeout_sec, missing_ok=False)

Block until all the DaemonSets are running or timeout is reached.

Parameters
  • kube_client (HTTPClient) client to use to connect to the k8s cluster
  • daemon_set_names (list of str) a list of DaemonSet names to check
  • daemon_sets_namespace (str) namespace where all the DaemonSets are created (single namespace for all resources)
  • timeout_sec (int) timeout for the call
  • missing_ok (bool, optional) when True, the function ignores that some of the objects listed in the daemon_set_names don't exist in k8s API and waits for them to show up; when False, an ObjectNotFound exception is raised.
Returns (list of DaemonSet)

The list of DaemonSet resources with all the objects listed in daemon_set_names included.

Raises
  • TimeoutError when timeout is reached.
  • pykube.exceptions.ObjectDoesNotExist when missing_ok == False and one of the objects listed in daemon_set_names can't be found in k8s API