Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ls (0.16 sec)

  1. istioctl/pkg/checkinject/checkinject.go

    }
    
    func extractMatchedSelectorInfo(ls *metav1.LabelSelector, objLabels map[string]string) (matched bool, injLabel string) {
    	if ls == nil {
    		return true, ""
    	}
    	selector, err := metav1.LabelSelectorAsSelector(ls)
    	if err != nil {
    		return false, ""
    	}
    	matched = selector.Matches(labels.Set(objLabels))
    	if !matched {
    		return matched, ""
    	}
    	for _, me := range ls.MatchExpressions {
    		switch me.Operator {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest-generate_test.go

    	// predicate is used to filter out "obvious" test cases, to avoid enumerating all cases
    	// nolint: unparam
    	predicate := func(ls LabelSet) (string, bool) {
    		if ls.namespace.Get("istio-injection") == "disabled" {
    			return "", true
    		}
    		if ls.pod.Get("sidecar.istio.io/inject") == "false" {
    			return "", true
    		}
    		return "", false
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top