Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Config Generation when Pod has no IP Address #6

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

ricoberger
Copy link
Owner

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.

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.
@ricoberger ricoberger added the changelog: fixed Something which wasn't working is fixed label Jul 24, 2023
@ricoberger ricoberger merged commit 630d87a into main Jul 24, 2023
1 check passed
@ricoberger ricoberger deleted the fix-config-generation-when-pod-has-no-ip branch July 24, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fixed Something which wasn't working is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant