Skip to content

Replace prometheus service with a more general policy

Alex Kalderimis requested to merge ajk-prometheus-service-policy into master

What does this MR do?

This MR changes the prometheus service policy by generalizing it. The way policy resolution works is that we try to find a policy for each ancestor of the class of the subject, returning the first policy found.

This means that policy resolution supports inheritance, and we do not need a seperate policy for every project service. Instead we can have a single policy for Service and then all subclasses, such as prometheus services will inherit the same behaviour.

This work was done as part of !40088 (merged) where we needed to add policy support for all services, but it can be cleanly extracted.

As a pure developer-facing refactoring, no changelog is necessary.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Alex Kalderimis

Merge request reports

Loading