Skip to content

Commit f484ae5

Browse files
Fix kernel version check condition in nftables proxier
Signed-off-by: Ryota Sakamoto <[email protected]>
1 parent 3985b78 commit f484ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/proxy/nftables/proxier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func getNFTablesInterface(ipFamily v1.IPFamily) (knftables.Interface, error) {
320320
//
321321
// However, we allow the user to bypass this check by setting
322322
// `KUBE_PROXY_NFTABLES_SKIP_KERNEL_VERSION_CHECK` to anything non-empty.
323-
if os.Getenv("KUBE_PROXY_NFTABLES_SKIP_KERNEL_VERSION_CHECK") != "" {
323+
if os.Getenv("KUBE_PROXY_NFTABLES_SKIP_KERNEL_VERSION_CHECK") == "" {
324324
kernelVersion, err := utilkernel.GetVersion()
325325
if err != nil {
326326
return nil, fmt.Errorf("could not check kernel version: %w", err)

0 commit comments

Comments
 (0)