MODULE

PYTEST_HELM_CHARTS.CLUSTERS

This module introduces classes for handling different clusters.

Classes
abstract class

pytest_helm_charts.clusters.Cluster()

Represents an abstract cluster.

Attributes
  • _kube_client
  • kube_client (HTTPClient, optional) Returns the HTTP client you can use to access Kubernetes API of the cluster under test.
    Please refer to pykube to get docs for HTTPClient.</>
Methods
  • create() (HTTPClient) Creates an instance of a cluster and returns HTTPClient to connect to it.</>
  • destroy() Destroys the cluster created earlier with a call to create.</>
abstract method

create() → HTTPClient

Creates an instance of a cluster and returns HTTPClient to connect to it.

abstract method

destroy()

Destroys the cluster created earlier with a call to create.

class

pytest_helm_charts.clusters.ExistingCluster(kube_config_path)

Implementation of Cluster that uses kube.config for an existing cluster.

Parameters
  • kube_config_path (str)
Attributes
  • _kube_client
  • kube_client (HTTPClient, optional) Returns the HTTP client you can use to access Kubernetes API of the cluster under test.
    Please refer to pykube to get docs for HTTPClient.</>
  • kube_config_path
Methods
  • create() (HTTPClient) Creates an instance of a cluster and returns HTTPClient to connect to it.</>
  • destroy() Destroys the cluster created earlier with a call to create.</>
method

create() → HTTPClient

Creates an instance of a cluster and returns HTTPClient to connect to it.

method

destroy()

Destroys the cluster created earlier with a call to create.