Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for labelSelectors (0.15 sec)

  1. cni/pkg/config/config.go

    	b.WriteString("InitTerminationMsg: " + c.InitTerminationMsg + "\n")
    	b.WriteString("InitExitCode: " + fmt.Sprint(c.InitExitCode) + "\n")
    	b.WriteString("LabelSelectors: " + c.LabelSelectors + "\n")
    	b.WriteString("FieldSelectors: " + c.FieldSelectors + "\n")
    	return b.String()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. pkg/kube/namespace/filter.go

    func (d *discoveryNamespacesFilter) selectorsChanged(
    	discoverySelectors []*meshapi.LabelSelector,
    	notify bool,
    ) {
    	d.lock.Lock()
    	defer d.lock.Unlock()
    	var selectors []labels.Selector
    	newDiscoveryNamespaces := sets.New[string]()
    
    	namespaceList := d.namespaces.List("", labels.Everything())
    
    	// convert LabelSelectors to Selectors
    	for _, selector := range discoverySelectors {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 17:12:52 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. pkg/kube/krt/internal.go

    	if ok {
    		return ac.Labels
    	}
    	panic(fmt.Sprintf("No Labels, got %T", a))
    }
    
    // getLabelSelector returns the labels for an object, if possible.
    // Warning: this will panic if the labelSelectors is not available.
    func getLabelSelector(a any) map[string]string {
    	ak, ok := a.(LabelSelectorer)
    	if ok {
    		return ak.GetLabelSelector()
    	}
    	val := reflect.ValueOf(a)
    
    	if val.Kind() == reflect.Ptr {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. pkg/kube/krt/core.go

    type Equaler[K any] interface {
    	Equals(k K) bool
    }
    
    // LabelSelectorer is an optional interface that can be implemented by collection types.
    // If implemented, this will be used to determine an objects' LabelSelectors
    type LabelSelectorer interface {
    	GetLabelSelector() map[string]string
    }
    
    // Labeler is an optional interface that can be implemented by collection types.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/conversion.go

    		Attributes: model.ServiceAttributes{
    			ServiceRegistry: provider.Kubernetes,
    			Name:            svc.Name,
    			Namespace:       svc.Namespace,
    			Labels:          svc.Labels,
    			ExportTo:        exportTo,
    			LabelSelectors:  svc.Spec.Selector,
    		},
    	}
    
    	switch svc.Spec.Type {
    	case corev1.ServiceTypeNodePort:
    		if _, ok := svc.Annotations[annotation.TrafficNodeSelector.Name]; !ok {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/types_pluginargs.go

    	metav1.TypeMeta
    
    	// DefaultConstraints defines topology spread constraints to be applied to
    	// Pods that don't define any in `pod.spec.topologySpreadConstraints`.
    	// `.defaultConstraints[*].labelSelectors` must be empty, as they are
    	// deduced from the Pod's membership to Services, ReplicationControllers,
    	// ReplicaSets or StatefulSets.
    	// When not empty, .defaultingType must be "List".
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 23:15:53 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/defaults_test.go

    			expectedObj:             ListOptions{LabelSelector: labels.Everything(), FieldSelector: fields.Everything(), Watch: true, ResourceVersionMatch: "m"},
    		},
    		{
    			name:                    "no-op, Watch=false",
    			watchListFeatureEnabled: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. pkg/apis/admissionregistration/v1beta1/defaults_test.go

    				Webhooks: []v1beta1.ValidatingWebhook{{
    					FailurePolicy:           &ignore,
    					MatchPolicy:             &exact,
    					TimeoutSeconds:          &thirty,
    					NamespaceSelector:       &metav1.LabelSelector{},
    					ObjectSelector:          &metav1.LabelSelector{},
    					SideEffects:             &unknown,
    					AdmissionReviewVersions: []string{"v1beta1"},
    				}},
    			},
    		},
    		{
    			name: "MutatingWebhookConfiguration",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 20:24:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. plugin/pkg/admission/antiaffinity/admission_test.go

    						{
    							LabelSelector: &metav1.LabelSelector{
    								MatchExpressions: []metav1.LabelSelectorRequirement{
    									{
    										Key:      "security",
    										Operator: metav1.LabelSelectorOpIn,
    										Values:   []string{"S2"},
    									},
    								},
    							},
    							TopologyKey: v1.LabelHostname,
    						}, {
    							LabelSelector: &metav1.LabelSelector{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 7.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/selection_predicate_test.go

    }
    
    func TestSelectionPredicate(t *testing.T) {
    	table := map[string]struct {
    		labelSelector, fieldSelector string
    		labels                       labels.Set
    		fields                       fields.Set
    		err                          error
    		shouldMatch                  bool
    		matchSingleKey               string
    	}{
    		"A": {
    			labelSelector: "name=foo",
    			fieldSelector: "uid=12345",
    			labels:        labels.Set{"name": "foo"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 30 10:39:09 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top