MODULE
PYTEST_HELM_CHARTS.K8S.NAMESPACE
Functions
ensure_namespace_exists(kube_client,namespace_name,extra_metadata,extra_spec)(Namespace, bool) — Checks if the Namespace exists and creates it if it doesn't</>make_namespace_object(kube_client,namespace_name,extra_metadata,extra_spec)(Namespace) — Creates a Namespace object in the API server.</>
function
pytest_helm_charts.k8s.namespace.make_namespace_object(kube_client, namespace_name, extra_metadata=None, extra_spec=None)
Creates a Namespace object in the API server.
Parameters
kube_client(HTTPClient) — client to use to connect to the k8s clusternamespace_name(str) — a name of the Namespace to ensureextra_metadata(dict, optional) — optional dict that will be merged with the 'metadata:' section of the objectextra_spec(dict, optional) — optional dict that will be merged with the 'spec:' section of the object
Returns (Namespace)
Namespace resource object.
function
pytest_helm_charts.k8s.namespace.ensure_namespace_exists(kube_client, namespace_name, extra_metadata=None, extra_spec=None)
Checks if the Namespace exists and creates it if it doesn't
Parameters
kube_client(HTTPClient) — client to use to connect to the k8s clusternamespace_name(str) — a name of the Namespace to ensureextra_metadata(dict, optional) — optional dict that will be merged with the 'metadata:' section of the objectextra_spec(dict, optional) — optional dict that will be merged with the 'spec:' section of the object
Returns (Namespace, bool)
Namespace resource object and bool equal True if the namespace was created by this function.