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

Sort externalTargets queried from DNS #311

Merged
merged 1 commit into from
Feb 22, 2021
Merged

Sort externalTargets queried from DNS #311

merged 1 commit into from
Feb 22, 2021

Conversation

k0da
Copy link
Collaborator

@k0da k0da commented Feb 20, 2021

In case CoreDNS runs with loadbalancer round_robin plugin enabled, k8gb
controller gets shuffled results while computing externalTarget list.
This leads to DNSEndpoint object update despite the fact list is the
same. Lets make list sorted and reproducible to avoid unnescessary
reconcilation loops.

Signed-off-by: Dinar Valeev [email protected]

@k0da k0da force-pushed the sort_endpoints branch 2 times, most recently from 49f1be3 to 87c39df Compare February 20, 2021 15:31
Copy link
Collaborator

@kuritka kuritka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, sort IP address list in documentation

otherwise LGTM

@k0da
Copy link
Collaborator Author

k0da commented Feb 20, 2021

@kuritka done

@k0da k0da requested a review from kuritka February 20, 2021 22:06
In case CoreDNS runs with loadbalancer round_robin plugin enabled, k8gb
controller gets shuffled results while computing externalTarget list.
This leads to DNSEndpoint object update despite the fact list is the
same. Lets make list sorted and reproducible to avoid unnescessary
reconcilation loops.

Signed-off-by: Dinar Valeev <[email protected]>
@k0da k0da merged commit bab4521 into master Feb 22, 2021
@somaritane somaritane deleted the sort_endpoints branch February 22, 2021 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants