def METHOD_NAME(self, reference: V1Ingress):
    if len(reference.spec.rules) < 1:
        self.logger.debug("No hosts defined, not creating ingress.")
        return None
    return self.api.create_namespaced_ingress(
        self.namespace, reference, field_manager=FIELD_MANAGER
    )