Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TaintExists (0.14 sec)

  1. pkg/util/taints/taints.go

    	}
    
    	if !updated {
    		newTaints = append(newTaints, *taint)
    	}
    
    	newNode.Spec.Taints = newTaints
    	return newNode, true, nil
    }
    
    // TaintExists checks if the given taint exists in list of taints. Returns true if exists false otherwise.
    func TaintExists(taints []v1.Taint, taintToFind *v1.Taint) bool {
    	for _, taint := range taints {
    		if taint.MatchTaint(taintToFind) {
    			return true
    		}
    	}
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 09:23:35 UTC 2022
    - 8.4K bytes
    - Viewed (0)
Back to top