Skip to content

Commit 60d0d67

Browse files
authored
Merge pull request kubernetes#130401 from ryota-sakamoto/fix-nftables-skip-kernel-check
Fix kernel version check condition in nftables proxier
2 parents a0be82d + f484ae5 commit 60d0d67

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)