-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Config Generation when Pod has no IP Address (#6)
When a Pod was already created, but doesn't had an IP address assigned yet, the configuration only contained the port number instead of the full address of the Pod. We are no checking that the Pod has an IP address assigned and if this is not the case we skip the Pod. We also improved the update logic of the generated secret with the Parca configuration. Therefor we are checking the the list of Pod IPs is not empty and not equal to the list of Pod IPs saved in the status field of the ParcaScrapeConfig CR. Only when the Pod IPs are not equal to the saved list of Pod IPs we will update the configuration. For all other cases we skip the update.
- Loading branch information
1 parent
1ea7d6d
commit 630d87a
Showing
3 changed files
with
48 additions
and
14 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