MissingObjectError#

exception controller.exceptions.MissingObjectError(message, *, user=None, kind, namespace=None, name=None)#

Bases: SlackException

An expected Kubernetes object is missing.

Parameters:
  • message (str) – Summary of error.

  • user (str | None, default: None) – Username on whose behalf the request is being made.

  • kind (str) – Kind of Kubernetes object that is missing.

  • namespace (str | None, default: None) – Namespace of object being acted on.

  • name (str | None, default: None) – Name of object being acted on.

to_slack()#

Convert to a Slack message for Slack alerting.

Returns:

Slack message suitable for posting as an alert.

Return type:

safir.slack.blockkit.SlackMessage