Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 546 for labelSelectors (0.2 sec)

  1. pkg/quota/v1/evaluator/core/pods_test.go

    					Affinity: &api.Affinity{
    						PodAffinity: &api.PodAffinity{
    							RequiredDuringSchedulingIgnoredDuringExecution: []api.PodAffinityTerm{
    								{LabelSelector: &metav1.LabelSelector{}, Namespaces: []string{"ns1"}, NamespaceSelector: &metav1.LabelSelector{}},
    							},
    						},
    					},
    				},
    			},
    			wantSelectors: []corev1.ScopedResourceSelectorRequirement{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/workloads_test.go

    			},
    		},
    		{
    			name: "pod with authz",
    			inputs: []any{
    				model.WorkloadAuthorization{
    					LabelSelector: model.NewSelector(map[string]string{"app": "foo"}),
    					Authorization: &security.Authorization{Name: "wrong-ns", Namespace: "not-ns"},
    				},
    				model.WorkloadAuthorization{
    					LabelSelector: model.NewSelector(map[string]string{"app": "foo"}),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    	}
    
    	mappings, err := b.resourceMappings()
    	if err != nil {
    		result.err = err
    		return result
    	}
    
    	var labelSelector, fieldSelector string
    	if b.labelSelector != nil {
    		labelSelector = *b.labelSelector
    	}
    	if b.fieldSelector != nil {
    		fieldSelector = *b.fieldSelector
    	}
    
    	visitors := []Visitor{}
    	for _, mapping := range mappings {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  4. pkg/apis/autoscaling/fuzzer/fuzzer.go

    			c.FuzzNoCustom(s) // fuzz self without calling this function again
    
    			// ensure we have a valid selector
    			metaSelector := &metav1.LabelSelector{}
    			c.Fuzz(metaSelector)
    			labelSelector, _ := metav1.LabelSelectorAsSelector(metaSelector)
    			s.Selector = labelSelector.String()
    		},
    		func(s *autoscaling.HorizontalPodAutoscalerSpec, c fuzz.Continue) {
    			c.FuzzNoCustom(s) // fuzz self without calling this function again
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 15 06:03:59 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  5. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    		ObjectMeta: metav1.ObjectMeta{Name: "abc", Namespace: metav1.NamespaceDefault},
    		Spec: policy.PodDisruptionBudgetSpec{
    			MinAvailable:               &minAvailable,
    			Selector:                   &metav1.LabelSelector{MatchLabels: validSelector},
    			UnhealthyPodEvictionPolicy: tc.unhealthyPodEvictionPolicy,
    		},
    	}
    
    	Strategy.PrepareForCreate(ctx, pdb)
    	errs := Strategy.Validate(ctx, pdb)
    	if len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. pkg/apis/extensions/v1beta1/defaults.go

    	labels := obj.Spec.Template.Labels
    
    	// TODO: support templates defined elsewhere when we support them in the API
    	if labels != nil {
    		if obj.Spec.Selector == nil {
    			obj.Spec.Selector = &metav1.LabelSelector{
    				MatchLabels: labels,
    			}
    		}
    		if len(obj.Labels) == 0 {
    			obj.Labels = labels
    		}
    	}
    	updateStrategy := &obj.Spec.UpdateStrategy
    	if updateStrategy.Type == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. pkg/apis/apps/fuzzer/fuzzer.go

    			}
    			if s.Spec.Selector == nil {
    				s.Spec.Selector = &metav1.LabelSelector{MatchLabels: s.Spec.Template.Labels}
    			}
    			if len(s.Labels) == 0 {
    				s.Labels = s.Spec.Template.Labels
    			}
    		},
    		func(j *apps.Deployment, c fuzz.Continue) {
    			c.FuzzNoCustom(j)
    
    			// match defaulting
    			if j.Spec.Selector == nil {
    				j.Spec.Selector = &metav1.LabelSelector{MatchLabels: j.Spec.Template.Labels}
    			}
    			if len(j.Labels) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.ListOptions.yaml

    allowWatchBookmarks: true
    apiVersion: v1
    continue: continueValue
    fieldSelector: fieldSelectorValue
    kind: ListOptions
    labelSelector: labelSelectorValue
    limit: 7
    resourceVersion: resourceVersionValue
    resourceVersionMatch: resourceVersionMatchValue
    sendInitialEvents: true
    timeoutSeconds: 5
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 300 bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/core.v1.ListOptions.json

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 376 bytes
    - Viewed (0)
  10. pkg/registry/admissionregistration/validatingadmissionpolicybinding/strategy_test.go

    				Name: "foo-selector",
    			},
    			Spec: admissionregistration.ValidatingAdmissionPolicyBindingSpec{
    				PolicyName: "replicalimit-policy.example.com",
    				ParamRef: &admissionregistration.ParamRef{
    					Selector: &metav1.LabelSelector{
    						MatchLabels: map[string]string{
    							"label": "value",
    						},
    					},
    					ParameterNotFoundAction: &denyAction,
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:09 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top