Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IsNotFoundError (0.36 sec)

  1. pkg/proxy/ipvs/ipset.go

    		// Clean legacy entries
    		for _, entry := range currentIPSetEntries.Difference(set.activeEntries).UnsortedList() {
    			if err := set.handle.DelEntry(entry, set.Name); err != nil {
    				if !utilipset.IsNotFoundError(err) {
    					klog.ErrorS(err, "Failed to delete ip set entry from ip set", "ipSetEntry", entry, "ipSet", set.Name)
    				}
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/ipset/ipset.go

    		return nil
    	}
    	return fmt.Errorf("unsupported HashFamily %q", family)
    }
    
    // IsNotFoundError returns true if the error indicates "not found".  It parses
    // the error string looking for known values, which is imperfect but works in
    // practice.
    func IsNotFoundError(err error) bool {
    	es := err.Error()
    	if strings.Contains(es, "does not exist") {
    		// set with the same name already exists
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  3. pkg/util/iptables/iptables.go

    	// iptables-nft-1.8.2 [...] -j BAD-CHAIN
    	"does not exist",
    }
    
    // IsNotFoundError returns true if the error indicates "not found".  It parses
    // the error string looking for known values, which is imperfect; beware using
    // this function for anything beyond deciding between logging or ignoring an
    // error.
    func IsNotFoundError(err error) bool {
    	es := err.Error()
    	for _, str := range iptablesNotFoundStrings {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 28.6K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/proxier.go

    			if !utiliptables.IsNotFoundError(err) {
    				logger.Error(err, "Error removing iptables rules in ipvs proxier")
    				encounteredError = true
    			}
    		}
    	}
    
    	// Remove all of our chains.
    	for _, ch := range iptablesCleanupChains {
    		if err := ipt.DeleteChain(ch.table, ch.chain); err != nil {
    			if !utiliptables.IsNotFoundError(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  5. pkg/proxy/iptables/proxier.go

    		args := append(jump.extraArgs,
    			"-m", "comment", "--comment", jump.comment,
    			"-j", string(jump.dstChain),
    		)
    		if err := ipt.DeleteRule(jump.table, jump.srcChain, args...); err != nil {
    			if !utiliptables.IsNotFoundError(err) {
    				logger.Error(err, "Error removing pure-iptables proxy rule")
    				encounteredError = true
    			}
    		}
    	}
    
    	// Flush and remove all of our "-t nat" chains.
    	iptablesData := bytes.NewBuffer(nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
Back to top