crate.operator.utils.crate package

Submodules

Module contents

async crate.operator.utils.crate.send_create_failed_notification(*args, **kwargs)
async crate.operator.utils.crate.send_feedback_notification(*, namespace, name, message, operation, status, logger, action=WebhookAction.UNKNOWN, **kwargs)
Parameters
Return type

None

async crate.operator.utils.crate.send_update_failed_notification(*args, **kwargs)
crate.operator.utils.crate.timeout(*, timeout)

The @crate.timeout() decorator for kopf handlers or StateBasedSubHandler. It checks if the runtime passed as kwarg to all handlers exceeded the given timeout and raises a kopf.HandlerTimeoutError accordingly.

Parameters

timeout (float) – the overall runtime of the decorated handler

Return type

Callable