IngressStorage#
- class nublado.controller.storage.kubernetes.ingress.IngressStorage(api_client, reconnect_timeout, logger)#
Bases:
KubernetesObjectDeleter[V1Ingress]Storage layer for
Ingressobjects.- Parameters:
api_client (
ApiClient) – Kubernetes API client.reconnect_timeout (
timedelta) – How long to wait before explictly restarting Kubernetes watches. This can prevent the connection from getting unexpectedly getting closed, resulting in 400 errors, or worse, events silently stopping.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
Ingressobject is allowed to not exist when the watch starts, since it may be created from aGafaelfawrIngresscustom object.- Parameters:
- Raises:
KubernetesError – Raised for exceptions from the Kubernetes API server.
TimeoutError – Raised if the object is not deleted within the delete timeout.
- Return type: