Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 571 for labelSelectors (0.87 sec)

  1. pkg/apis/networking/v1/defaults_test.go

    					PodSelector: metav1.LabelSelector{
    						MatchLabels: map[string]string{"a": "b"},
    					},
    					Ingress: []networkingv1.NetworkPolicyIngressRule{
    						{
    							From: []networkingv1.NetworkPolicyPeer{
    								{
    									PodSelector: &metav1.LabelSelector{
    										MatchLabels: map[string]string{"c": "d"},
    									},
    									NamespaceSelector: &metav1.LabelSelector{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 10:48:05 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go

    			panic(e)
    		}
    		return out
    	}
    	tc := []struct {
    		in        *LabelSelector
    		out       labels.Selector
    		expectErr bool
    	}{
    		{in: nil, out: labels.Nothing()},
    		{in: &LabelSelector{}, out: labels.Everything()},
    		{
    			in:  &LabelSelector{MatchLabels: matchLabels},
    			out: mustParse("foo=bar"),
    		},
    		{
    			in:  &LabelSelector{MatchExpressions: matchExpressions},
    			out: mustParse("baz in (norf,qux)"),
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. pkg/apis/admissionregistration/v1/defaults_test.go

    				Webhooks: []v1.ValidatingWebhook{{
    					FailurePolicy:     &fail,
    					MatchPolicy:       &equivalent,
    					TimeoutSeconds:    &ten,
    					NamespaceSelector: &metav1.LabelSelector{},
    					ObjectSelector:    &metav1.LabelSelector{},
    				}},
    			},
    		},
    		{
    			name: "MutatingWebhookConfiguration",
    			original: &v1.MutatingWebhookConfiguration{
    				Webhooks: []v1.MutatingWebhook{{}},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. pkg/apis/admissionregistration/v1alpha1/defaults_test.go

    				Spec: v1alpha1.ValidatingAdmissionPolicySpec{
    					MatchConstraints: &v1alpha1.MatchResources{
    						MatchPolicy:       &equivalent,
    						NamespaceSelector: &metav1.LabelSelector{},
    						ObjectSelector:    &metav1.LabelSelector{},
    					},
    					FailurePolicy: &fail,
    				},
    			},
    		},
    		{
    			name: "ValidatingAdmissionPolicyBinding",
    			original: &v1alpha1.ValidatingAdmissionPolicyBinding{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:09 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. pkg/apis/extensions/v1beta1/defaults_test.go

    				Spec: extensionsv1beta1.NetworkPolicySpec{
    					PodSelector: metav1.LabelSelector{
    						MatchLabels: map[string]string{"a": "b"},
    					},
    				},
    			},
    			expected: &extensionsv1beta1.NetworkPolicy{
    				Spec: extensionsv1beta1.NetworkPolicySpec{
    					PodSelector: metav1.LabelSelector{
    						MatchLabels: map[string]string{"a": "b"},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  6. pkg/api/pod/warnings_test.go

    						{
    							TopologyKey:   `foo`,
    							LabelSelector: &metav1.LabelSelector{},
    						},
    						{
    							TopologyKey:   `beta.kubernetes.io/arch`,
    							LabelSelector: &metav1.LabelSelector{},
    						},
    						{
    							TopologyKey:   `beta.kubernetes.io/os`,
    							LabelSelector: &metav1.LabelSelector{},
    						},
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  7. pkg/config/schema/kubeclient/common.go

    					options.FieldSelector = opts.FieldSelector
    					options.LabelSelector = opts.LabelSelector
    					return c.Dynamic().Resource(g).Namespace(opts.Namespace).List(context.Background(), options)
    				},
    				WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
    					options.FieldSelector = opts.FieldSelector
    					options.LabelSelector = opts.LabelSelector
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers.go

    		}
    		labelSelector.MatchExpressions = append(labelSelector.MatchExpressions, LabelSelectorRequirement{
    			Key:      req.Key(),
    			Operator: op,
    			Values:   req.Values().List(),
    		})
    	}
    	return labelSelector, nil
    }
    
    // SetAsLabelSelector converts the labels.Set object into a LabelSelector api object.
    func SetAsLabelSelector(ls labels.Set) *LabelSelector {
    	if ls == nil {
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 15 10:58:36 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook_test.go

    			expectCall:  false,
    			matchResult: true,
    		},
    		{
    			name: "invalid kind lookup",
    			webhook: &v1.ValidatingWebhook{
    				NamespaceSelector: &metav1.LabelSelector{},
    				ObjectSelector:    &metav1.LabelSelector{},
    				MatchPolicy:       &equivalentMatch,
    				Rules: []v1.RuleWithOperations{{
    					Operations: []v1.OperationType{"*"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 28 19:30:04 UTC 2023
    - 32K bytes
    - Viewed (0)
  10. pkg/apis/apps/validation/validation_test.go

    			Selector: &metav1.LabelSelector{MatchLabels: validSelector},
    			Template: validPodTemplate.Template,
    			UpdateStrategy: apps.DaemonSetUpdateStrategy{
    				Type: apps.OnDeleteDaemonSetStrategyType,
    			},
    		},
    	}, {
    		ObjectMeta: metav1.ObjectMeta{Name: "abc-123", Namespace: metav1.NamespaceDefault},
    		Spec: apps.DaemonSetSpec{
    			Selector: &metav1.LabelSelector{MatchLabels: validSelector},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
Back to top