KubernetesIngressService#
- class gafaelfawr.services.kubernetes.KubernetesIngressService(storage, logger)#
Bases:
objectManage
Ingressresources with Gafaelfawr annotations.The
GafaelfawrIngresscustom resource defines a template for anIngressresource that will be created by this service, with the special annotations and configuration for Gafaelfawr added. It is intended to be driven by Kopf and a thin layer of Kopf event handlers.- Parameters:
storage (
KubernetesIngressStorage) – Storage layer for the Kubernetes cluster.logger (
BoundLogger) – Logger to report issues.
Methods Summary
update(parent)Handle a change to a
GafaelfawrIngress.Methods Documentation
- async update(parent)#
Handle a change to a
GafaelfawrIngress.- Parameters:
parent (
GafaelfawrIngress) – Contents of theGafaelfawrIngressKubernetes object.- Returns:
Information to put into the
statusportion of the object, orNoneif no status update is required.- Return type:
KubernetesResourceStatus or None
- Raises:
KubernetesError – Some error occurred while trying to write to Kubernetes.