![]() ipvs `getProxyMode` test fails on mac as `utilipvs.GetRequiredIPVSMods` try to reach `/proc/sys/kernel/osrelease` to find version of the running linux kernel. Linux kernel version is used to determine the list of required kernel modules for ipvs. Logic to determine kernel version is moved to GetKernelVersion method in LinuxKernelHandler which implements ipvs.KernelHandler. Mock KernelHandler is used in the test cases. Read and parse file is converted to go function instead of execing cut. |
||
---|---|---|
.. | ||
testing | ||
BUILD | ||
ipvs_linux_test.go | ||
ipvs_linux.go | ||
ipvs_test.go | ||
ipvs_unsupported.go | ||
ipvs.go | ||
kernelcheck_unsupported.go | ||
OWNERS |