Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 574 for LabelSelector (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/testcase.go

    				NamespaceSelector:       &metav1.LabelSelector{},
    				ObjectSelector:          &metav1.LabelSelector{},
    				AdmissionReviewVersions: []string{"v1beta1"},
    			}, {
    				Name:              "shouldNotBeCalled",
    				ClientConfig:      ccfgSVC("shouldNotBeCalled"),
    				NamespaceSelector: &metav1.LabelSelector{},
    				ObjectSelector: &metav1.LabelSelector{
    					MatchLabels: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 47.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching_test.go

    			expectMatches: false,
    		},
    		{
    			name: "wildcard rule, match as requested",
    			criteria: &v1.MatchResources{
    				NamespaceSelector: &metav1.LabelSelector{},
    				ObjectSelector:    &metav1.LabelSelector{},
    				ResourceRules: []v1.NamedRuleWithOperations{{
    					RuleWithOperations: v1.RuleWithOperations{
    						Operations: []v1.OperationType{"*"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/cli-runtime/pkg/resource/selector.go

    		Mapping:       mapping,
    		Namespace:     namespace,
    		LabelSelector: labelSelector,
    		FieldSelector: fieldSelector,
    		LimitChunks:   limitChunks,
    	}
    }
    
    // Visit implements Visitor and uses request chunking by default.
    func (r *Selector) Visit(fn VisitorFunc) error {
    	helper := NewHelper(r.Client, r.Mapping)
    	initialOpts := metav1.ListOptions{
    		LabelSelector: r.LabelSelector,
    		FieldSelector: r.FieldSelector,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 15:08:01 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  10. pkg/apis/policy/v1beta1/conversion_test.go

    			In: &v1beta1.PodDisruptionBudget{
    				Spec: v1beta1.PodDisruptionBudgetSpec{
    					Selector: &metav1.LabelSelector{},
    				},
    			},
    			Out: &policy.PodDisruptionBudget{},
    			ExpectOut: &policy.PodDisruptionBudget{
    				Spec: policy.PodDisruptionBudgetSpec{
    					Selector: &metav1.LabelSelector{
    						MatchExpressions: []metav1.LabelSelectorRequirement{
    							{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 09 15:29:11 UTC 2021
    - 5.1K bytes
    - Viewed (0)
Back to top