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 DNS server panic on darwin based systems. #3474

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

thallgren
Copy link
Member

A darwin machine with full access to the cluster's subnet never creates
a TUN-device, so a check is needed if the device actually exists when
setting DNS (which is a noop anyway on darwin).

@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Jan 4, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Jan 4, 2024
The DNS server didn't protect several of its variables that were used
concurrently by different go-routines.

This commit also replaces an untyped `sync.Map` with a typed
`xsync.MapOf`

Signed-off-by: Thomas Hallgren <[email protected]>
A darwin machine with full access to the cluster's subnet never creates
a TUN-device, so a check is needed if the device actually exists when
setting DNS (which is a noop anyway on darwin).

Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren force-pushed the thallgren/darwin-dns-panic branch from 0a6a004 to b83d8fb Compare January 4, 2024 12:39
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Jan 4, 2024
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Jan 4, 2024
@thallgren thallgren merged commit b2a6155 into release/v2 Jan 4, 2024
18 checks passed
@thallgren thallgren deleted the thallgren/darwin-dns-panic branch January 4, 2024 14:58
@thallgren thallgren mentioned this pull request Feb 4, 2024
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.

1 participant