IngressStorage

class controller.storage.kubernetes.ingress.IngressStorage(api_client, logger)

Bases: KubernetesObjectDeleter

Storage layer for Ingress objects.

Parameters:
  • api_client (ApiClient) – Kubernetes API client.

  • logger (BoundLogger) – Logger to use.

Methods Summary

wait_for_ip_address(name, namespace, timeout)

Wait for an ingress to get an IP address assigned.

Methods Documentation

async wait_for_ip_address(name, namespace, timeout)

Wait for an ingress to get an IP address assigned.

The Ingress object is allowed to not exist when the watch starts, since it may be created from a GafaelfawrIngress custom object.

Parameters:
  • name (str) – Name of the ingress.

  • namespace (str) – Namespace of the ingress.

  • timeout (Timeout) – How long to wait for the IP address to be assigned.

Raises:
  • KubernetesError – Raised for exceptions from the Kubernetes API server.

  • TimeoutError – Raised if the object is not deleted within the delete timeout.

Return type:

None