Skip to content

Commit 904ac9a

Browse files
authored
wrong code (#5391)
Signed-off-by: zbb88888 <jmdxjsjgcxy@gmail.com>
1 parent 8194e60 commit 904ac9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/pod.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,7 @@ func appendCheckPodToDel(c *Controller, pod *v1.Pod, ownerRefName, ownerRefKind
21432143
return false, nil
21442144
}
21452145
podSubnetCidr := podSubnet.Spec.CIDRBlock
2146-
if podSubnetCidr != "" {
2146+
if podSubnetCidr == "" {
21472147
// subnet spec cidr changed by user
21482148
klog.Errorf("invalid pod subnet %s empty cidr %s, not auto clean ip", podSwitch, podSubnetCidr)
21492149
return false, nil

0 commit comments

Comments
 (0)