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
namespace (
str
) –name (
str
) –message (
str
) –operation (
WebhookOperation
) –status (
WebhookStatus
) –logger (
Logger
) –action (
WebhookAction
) –
- Return type
- 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.