-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
operator: fix object selectors behavior
based on rules [here](https://docs.victoriametrics.com/operator/resources/vmagent/#scraping) 1. fix VMScrapeConfig reconcile: VMScrapeConfig is ignored in it's own reconcile when vmagentSpec.selectAllByDefault=false, since vmagent.IsUnmanaged() didn't include checks about VMScrapeConfig. But VMScrapeConfig could be pick up in vmagent's reconcile. 2. fix vmscrapeConfigNamespaceSelector in vmagent's reconcile, address scrapeConfigSelectors don't work as expected. VictoriaMetrics#7687 3. fix object selector when xxxNamespaceSelector matches nothing but selectAllByDefault=true. Before, it ignores the xxxNamespaceSelector that matches nothing. 4. limit the IsUnmanaged check scope in reconcile for each scrape CR.
- Loading branch information
Showing
18 changed files
with
186 additions
and
66 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
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.