Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 126 for AsSelector (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    		if !ok {
    			return nil, nil, fmt.Errorf("invalid object")
    		}
    		return labels.Set(pod.Labels), nil, nil
    	}
    	predicate := storage.SelectionPredicate{
    		Label:    labels.Set{"even": "true"}.AsSelector(),
    		GetAttrs: getAttrs,
    		Limit:    4,
    	}
    
    	result1 := example.PodList{}
    	options := storage.ListOptions{
    		Predicate: predicate,
    		Recursive: true,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    		expectEvents(t, events,
    			Event{Type: "service", ID: "selector.com", Namespace: selector.Namespace},
    			Event{Type: "service", ID: "updated.com", Namespace: selector.Namespace},
    			Event{Type: "eds cache", ID: "selector.com", Namespace: selector.Namespace},
    			Event{Type: "xds full", ID: "selector.com,updated.com"},
    		)
    	})
    
    	t.Run("add dns service entry", func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  3. pkg/controller/podautoscaler/horizontal.go

    	if selector == "" {
    		errMsg := "selector is required"
    		a.eventRecorder.Event(hpa, v1.EventTypeWarning, "SelectorRequired", errMsg)
    		setCondition(hpa, autoscalingv2.ScalingActive, v1.ConditionFalse, "InvalidSelector", "the HPA target's scale is missing a selector")
    		return nil, fmt.Errorf(errMsg)
    	}
    
    	parsedSelector, err := labels.Parse(selector)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  4. common/scripts/metallb-native.yaml

                        label selector matches all objects. A null label selector matches
                        no objects.
                      properties:
                        matchExpressions:
                          description: matchExpressions is a list of label selector requirements.
                            The requirements are ANDed.
                          items:
                            description: A label selector requirement is a selector that
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 23:56:31 UTC 2024
    - 63.9K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    		[]string{"ns1/selector"})
    
    	s.addPolicy(t, "global-selector", systemNS, map[string]string{"app": "a"}, gvk.AuthorizationPolicy, nil)
    	s.assertEvent(t, s.podXdsName("pod1"), s.podXdsName("pod3"), xdsGlobalSelector)
    
    	assert.Equal(t,
    		s.lookup(s.addrXdsName("127.0.0.1"))[0].Address.GetWorkload().AuthorizationPolicies,
    		[]string{"istio-system/global-selector", "ns1/selector"})
    
    	// Update selector to not select
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  6. pkg/apis/batch/validation/validation.go

    	// Whether manually or automatically generated, the selector of the job must match the pods it will produce.
    	if selector, err := metav1.LabelSelectorAsSelector(obj.Spec.Selector); err == nil {
    		if !selector.Matches(labels.Set(expectedLabels)) {
    			allErrs = append(allErrs, field.Invalid(field.NewPath("spec").Child("selector"), obj.Spec.Selector, "`selector` not auto-generated"))
    		}
    	}
    
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    		name string
    		// For watch request, the name of object is specified with field selector
    		// "metadata.name=objectName". So in this watch tests, we should set the
    		// requestedName and field selector "metadata.name=requestedName" at the
    		// same time or set neighter of them.
    		requestedName string
    		recursive     bool
    		fieldSelector fields.Selector
    		indexFields   []string
    		watchTests    []*testWatchStruct
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  8. pkg/controller/endpoint/endpoints_controller_test.go

    			},
    		},
    		{
    			desc: "External name with selector should not receive endpoints",
    			service: &v1.Service{
    				ObjectMeta: metav1.ObjectMeta{Name: serviceName, Namespace: namespace},
    				Spec: v1.ServiceSpec{
    					Selector: map[string]string{"foo": "bar"},
    					Type:     v1.ServiceTypeExternalName,
    				},
    			},
    		},
    		{
    			desc: "External name without selector and ports should not receive endpoints",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/admissionregistration/v1/generated.proto

      optional string namespace = 2;
    
      // selector can be used to match multiple param objects based on their labels.
      // Supply selector: {} to match all resources of the ParamKind.
      //
      // If multiple params are found, they are all evaluated with the policy expressions
      // and the results are ANDed together.
      //
      // One of `name` or `selector` must be set, but `name` and `selector` are
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/admissionregistration/v1beta1/generated.proto

      optional string namespace = 2;
    
      // selector can be used to match multiple param objects based on their labels.
      // Supply selector: {} to match all resources of the ParamKind.
      //
      // If multiple params are found, they are all evaluated with the policy expressions
      // and the results are ANDed together.
      //
      // One of `name` or `selector` must be set, but `name` and `selector` are
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 50.4K bytes
    - Viewed (0)
Back to top