cybozu-go / coil

CNI plugin for Kubernetes designed for scalability and extensibility
Apache License 2.0
158 stars 18 forks source link

[Bugfix] DualStack Pools not working. #209

Closed Cellebyte closed 2 years ago

Cellebyte commented 2 years ago
Cellebyte commented 2 years ago

Disabling CGO fixed the issue for me.

Cellebyte commented 2 years ago

Hey looks like due to the C Dependency in your build the header definition was order dependent. This caused an issue when I do first v6 fallback v4 as the C Header needed first an v4 address to properly work. Without the CGO it uses a Socket and this dependency goes away on the netlink library. And as it was the only change I did outside of the unnecessary code change it looks like the issue for this weird bug.

ysksuzuki commented 2 years ago

@Cellebyte Thank you for sharing that! Could you squash the first two commits into the last one?

Cellebyte commented 2 years ago

@ysksuzuki :+1: