Skip to content

Commit 4fe6dc8

Browse files
committed
chore: clean dns code
Split from #9596 (without IPv6 stuff). This PR does this things: - Refactored `DNSResolveCacheController`. Most of the logic moved to `dns` package types. Simplify and streamline logic. - Replace most of the goroutine orchestration with suture package. - Support per-item reaction to the dns listeners/servers failing to start. This allows us to ignore IPv6 errors if it's disabled. - Support per-item reaction to the dns listeners/servers failing to stop. Signed-off-by: Dmitriy Matrenichev <[email protected]>
1 parent 0290a38 commit 4fe6dc8

File tree

10 files changed

+728
-433
lines changed

10 files changed

+728
-433
lines changed

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ require (
171171
github.com/spf13/cobra v1.8.1
172172
github.com/spf13/pflag v1.0.5
173173
github.com/stretchr/testify v1.9.0
174+
github.com/thejerf/suture/v4 v4.0.5
174175
github.com/u-root/u-root v0.14.0
175176
github.com/ulikunitz/xz v0.5.12
176177
github.com/vmware/vmw-guestinfo v0.0.0-20220317130741-510905f0efa3

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
732732
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
733733
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 h1:kdXcSzyDtseVEc4yCz2qF8ZrQvIDBJLl4S1c3GCXmoI=
734734
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
735+
github.com/thejerf/suture/v4 v4.0.5 h1:F1E/4FZwXWqvlWDKEUo6/ndLtxGAUzMmNqkrMknZbAA=
736+
github.com/thejerf/suture/v4 v4.0.5/go.mod h1:gu9Y4dXNUWFrByqRt30Rm9/UZ0wzRSt9AJS6xu/ZGxU=
735737
github.com/u-root/u-root v0.14.0 h1:Ka4T10EEML7dQ5XDvO9c3MBN8z4nuSnGjcd1jmU2ivg=
736738
github.com/u-root/u-root v0.14.0/go.mod h1:hAyZorapJe4qzbLWlAkmSVCJGbfoU9Pu4jpJ1WMluqE=
737739
github.com/u-root/uio v0.0.0-20240224005618-d2acac8f3701 h1:pyC9PaHYZFgEKFdlp3G8RaCKgVpHZnecvArXvPXcFkM=

0 commit comments

Comments
 (0)