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

Backport of structs: fix test for empty DNS configuration into release/1.6.x #20254

Merged

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #20233 to be assessed for backporting due to the inclusion of the label backport/1.6.x.

The below text is copied from the body of the original PR.


The DNSConfig.IsZero method incorrectly returns true if any of the fields are empty, rather than if all of them are empty.

The only code path that consumes this method is on the client, where it's used as part of equality checks on the allocation network status to set the priority of allocation updates to the server. Hypothetically, if the network hook modified only the DNS configuration and no task states were emitted, it would be possible to miss an allocation update. In practice this appears to be impossible, but we should fix the bug so that there aren't errors in future consumers.


  • Backported only to 1.6.x and 1.7.x because this code doesn't exist in 1.5.x.
  • I don't have a changelog here because this isn't user-visible as far as I can tell

Overview of commits

@vercel vercel bot temporarily deployed to Preview – nomad March 29, 2024 14:49 Inactive
@tgross tgross merged commit 9820941 into release/1.6.x Mar 29, 2024
25 of 26 checks passed
@tgross tgross deleted the backport/b-dns-config-diff/sharply-cunning-crab branch March 29, 2024 15:10
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.

2 participants