• Kubernetes Submit Queue's avatar
    Merge pull request #57317 from m1093782566/notfound · 75859982
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 57906, 57425, 56939, 57317, 57762). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    add "Not Found" error for ipset set & entry delete
    
    **What this PR does / why we need it**:
    
    Add "not found error" for ipset set and entry delete. For example,
    
    ```
    [root@SHA1000130405 k8s-yml]# ipset list
    Name: KUBE-LOOP-BACK
    Type: hash:ip,port,ip
    Revision: 2
    Header: family inet hashsize 1024 maxelem 65536
    Size in memory: 16776
    References: 1
    Members:
    172.17.0.2,udp:53,172.17.0.2
    172.17.0.2,tcp:53,172.17.0.2
    100.106.89.164,tcp:6443,100.106.89.164
    
    [root@SHA1000130405 k8s-yml]# ipset delete foo
    ipset v6.19: The set with the given name does not exist
    
    [root@SHA1000130405 k8s-yml]# ipset del KUBE-LOOP-BACK 1.2.3.4,tcp:80,1.2.3.4
    ipset v6.19: Syntax error: Third element is missing from 1.2.3.4,tcp:80,1.2.3.4.
    ```
    Just need to filter the error message "does not exist" or "element is missing". We should ignore these error when try to make sure they are deleted.
    
    **Which issue(s) this PR fixes**:
    Fixes #57318
    
    **Special notes for your reviewer**:
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    75859982
Name
Last commit
Last update
..
async Loading commit data...
bandwidth Loading commit data...
config Loading commit data...
configz Loading commit data...
dbus Loading commit data...
ebtables Loading commit data...
env Loading commit data...
file Loading commit data...
filesystem Loading commit data...
flock Loading commit data...
goroutinemap Loading commit data...
hash Loading commit data...
initsystem Loading commit data...
interrupt Loading commit data...
io Loading commit data...
ipconfig Loading commit data...
ipset Loading commit data...
iptables Loading commit data...
ipvs Loading commit data...
keymutex Loading commit data...
labels Loading commit data...
limitwriter Loading commit data...
maps Loading commit data...
metrics Loading commit data...
mount Loading commit data...
net Loading commit data...
netsh Loading commit data...
node Loading commit data...
normalizer Loading commit data...
nsenter Loading commit data...
oom Loading commit data...
parsers Loading commit data...
pointer Loading commit data...
procfs Loading commit data...
reflector/prometheus Loading commit data...
removeall Loading commit data...
resizefs Loading commit data...
resourcecontainer Loading commit data...
rlimit Loading commit data...
selinux Loading commit data...
slice Loading commit data...
strings Loading commit data...
sysctl Loading commit data...
system Loading commit data...
tail Loading commit data...
taints Loading commit data...
template Loading commit data...
term Loading commit data...
threading Loading commit data...
tolerations Loading commit data...
version Loading commit data...
workqueue/prometheus Loading commit data...
BUILD Loading commit data...
verify-util-pkg.sh Loading commit data...