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

chore: account for resource sorting in dns upstream resource #9310

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

DmitriyMV
Copy link
Member

List returns a sorted (by id) list of resources. This doesn't work when the order of dns upstreams is important. Because of that add an Idx field to the "DNSUpstreams.net.talos.dev" resource, so we can preserve order.

Fixes #9274

Copy link
Member

@frezbo frezbo left a comment

Choose a reason for hiding this comment

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

do we need some tests?

@DmitriyMV
Copy link
Member Author

do we need some tests?

@frezbo agree. done.

`List` returns a sorted (by id) list of resources. This doesn't work when the order of dns upstreams is important. Because of that
add an `Idx` field to the "DNSUpstreams.net.talos.dev" resource, so we can preserve order.

Fixes siderolabs#9274

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
@DmitriyMV
Copy link
Member Author

/m

@talos-bot talos-bot merged commit 79cd031 into siderolabs:main Sep 12, 2024
50 checks passed
@DmitriyMV DmitriyMV deleted the dns-upstream-fix branch September 12, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backported
Development

Successfully merging this pull request may close these issues.

Machine config DNS order doesn't seem to be preserved by resolver
6 participants