Skip to content

Static Alerts and Providers #626

@darkowlzz

Description

@darkowlzz

Like all the other Flux API objects, Alerts and Providers are backed by reconcilers and report readiness status. But unlike other objects, these reconcilers don't perform any effective action or produce any artifact. They only perform input validation, most of which can be performed using the Kubernetes API validation. Alerts and Providers are essentially data objects, similar to a ConfigMap. The configurations in Alerts and Providers are used by the event handler while processing the events received by notification-controller. For simplicity and ease of maintenance, Alerts and Providers can be made static objects that are not backed by reconcilers and don't report any status. Their existence means that they are ready. There's nothing to check if they are ready to use.

Because this change drops the whole status from Alerts and Providers, it requires a new API version, v1beta3. For migrating the old Alerts and Providers to this new API, temporary migration reconcilers will be needed for each of them, which can be removed in a future release. The loss of readiness and suspend metrics from the reconcilers have been addresses in the recent version of Flux with new monitoring setup that uses kube-state-metrics for collecting those metrics from the objects.

TODOs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/alertingAlerting related issues and PRsarea/apiAPI related issues and pull requestsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions