eldadru / ksniff

Kubectl plugin to ease sniffing on kubernetes pods using tcpdump and wireshark
Apache License 2.0
3.13k stars 186 forks source link

Can't use MacOS /etc/resolver #148

Open bostrt opened 2 years ago

bostrt commented 2 years ago

MacOS /etc/resolver can only be used if ksniff is compiled with CGO_ENABLED=1. However, automated builds via GitHub Actions aren't possible or I just can't figure it out.

https://github.com/eldadru/ksniff/pull/142 was originally submitted and merged before the build issues were found. The change was reverted here https://github.com/eldadru/ksniff/commit/807044018702790e45d233eafd16e689f7dc5171 but I'm happy to re-add it if an automated build solution is found.

bostrt commented 2 years ago

I'm happy to receive any input on using CGO and cross building for MacOS.