-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add resourceDiscovery status condition (#223)
* feat: add resourceDiscovery status condition The ResourceSelector field in a MonitoringStack CR can be set to nil. This is passed on to the Prometheus CR and can be used to disable all service discovery and thus most scraping (we add prometheus and alertmanager scrape jobs via additionalScrapeConfigs). When this is configured we now set a new status condition to alert users to the fact that no service discovery is configured. Fixes: https://issues.redhat.com/browse/MON-2864 * refactor: updateConditions should update previously not existing conditions Problem: Before this commit only an empty Conditions list would initialize all conditions. This means that if the controller gets updated to report a new conditions and existing MonitoringStack CR would not report that new conditions until its recreated. Fix: Update all conditions independently of the previously reported conditions. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
- Loading branch information
Showing
9 changed files
with
333 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.