Skip to content

Commit

Permalink
fix: ignore cluster dns servers when editing host resolv conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Oct 17, 2023
1 parent 8159536 commit 8e25877
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/vishvananda/netlink v1.2.1-beta.2
github.com/webmeshproj/api v0.9.0
github.com/webmeshproj/storage-provider-k8s v0.2.13
github.com/webmeshproj/webmesh v0.14.9
github.com/webmeshproj/webmesh v0.14.10-0.20231017110206-754e7f331a2c
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.28.2
k8s.io/apiextensions-apiserver v0.28.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,8 @@ github.com/webmeshproj/storage-provider-k8s v0.2.13 h1:89EpTrznx0UdWjrKa6t5V8x36
github.com/webmeshproj/storage-provider-k8s v0.2.13/go.mod h1:6djQ8yftmizq+TwfeJ237XgX2/Pklp5ul4/xNTNeFqQ=
github.com/webmeshproj/webmesh v0.14.9 h1:ALmCWXNwFhKEzJ/nd9OENy3009vy27i1Fd/bgkPyKxY=
github.com/webmeshproj/webmesh v0.14.9/go.mod h1:NyhtaJLkSNNfQ361wER1aLD+oGh6Fb5nj8dsXBi2P+0=
github.com/webmeshproj/webmesh v0.14.10-0.20231017110206-754e7f331a2c h1:YdWszwHV1iQTKlGmokvsUofKTwRhvFAetcJl0VBYUq8=
github.com/webmeshproj/webmesh v0.14.10-0.20231017110206-754e7f331a2c/go.mod h1:NyhtaJLkSNNfQ361wER1aLD+oGh6Fb5nj8dsXBi2P+0=
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 h1:EKhdznlJHPMoKr0XTrX+IlJs1LH3lyx2nfr1dOlZ79k=
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1/go.mod h1:8UvriyWtv5Q5EOgjHaSseUEdkQfvwFv1I/In/O2M9gc=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
Expand Down
5 changes: 3 additions & 2 deletions internal/host/hostnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,9 @@ func (h *hostNode) Start(ctx context.Context, cfg *rest.Config) error {
}
return ""
}(),
DisableIPv4: h.config.Network.DisableIPv4,
DisableIPv6: h.config.Network.DisableIPv6,
LocalDNSOnly: true,
DisableIPv4: h.config.Network.DisableIPv4,
DisableIPv6: h.config.Network.DisableIPv6,
})
connectCtx, cancel := context.WithTimeout(ctx, h.config.ConnectTimeout)
defer cancel()
Expand Down

0 comments on commit 8e25877

Please sign in to comment.