canonical / prometheus-scrape-config-k8s-operator

This charmed operator allows operators to fine-tune scrape job configurations before sending them to the Prometheus charmed operator.
https://charmhub.io/prometheus-scrape-config-k8s
Apache License 2.0
1 stars 1 forks source link

fix: mitigate races by restructuring the code #39

Closed simskij closed 7 months ago

simskij commented 7 months ago

Issue

Scrape Config is currently suffering from race conditions, making the Blocked state sticky.

Solution

This code reshuffles and simplifies the code to solve that.

Context

Testing Instructions

Release Notes

Fix race condition in scrape config