Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 262 for labelSelector (0.24 sec)

  1. pkg/apis/apps/v1beta1/defaults_test.go

    						Type:          appsv1beta1.OnDeleteStatefulSetStrategyType,
    						RollingUpdate: nil,
    					},
    					RevisionHistoryLimit: ptr.To[int32](10),
    					Selector: &metav1.LabelSelector{
    						MatchLabels:      map[string]string{"foo": "bar"},
    						MatchExpressions: []metav1.LabelSelectorRequirement{},
    					},
    				},
    			},
    		},
    		{
    			name: "Alternate update strategy",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. pkg/api/pod/warnings.go

    				t.TopologyKey,
    				msg,
    			))
    		}
    
    		// warn if labelSelector is empty which is no-match.
    		if t.LabelSelector == nil {
    			warnings = append(warnings, fmt.Sprintf("%s: a null labelSelector results in matching no pod", fieldPath.Child("spec", "topologySpreadConstraints").Index(i).Child("labelSelector")))
    		}
    	}
    
    	// use of deprecated annotations
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. pkg/registry/core/pod/storage/eviction_test.go

    			pdbs: []runtime.Object{&policyv1.PodDisruptionBudget{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "default"},
    				Spec:       policyv1.PodDisruptionBudgetSpec{Selector: &metav1.LabelSelector{MatchLabels: map[string]string{"a": "true"}}},
    				Status:     policyv1.PodDisruptionBudgetStatus{DisruptionsAllowed: 0},
    			}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  4. pkg/kube/inject/webhook_test.go

    			},
    			podSpec: podSpec,
    			meta: metav1.ObjectMeta{
    				Name:      "policy-disabled-always-inject-with-labels",
    				Namespace: "test-namespace",
    				Labels:    map[string]string{"foo": "bar"},
    			},
    			want: true,
    		},
    		{
    			config: &Config{
    				Policy:              InjectionPolicyEnabled,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 39K bytes
    - Viewed (1)
  5. pkg/kubelet/clustertrustbundle/clustertrustbundle_manager_test.go

    	informerFactory.Start(ctx.Done())
    	if !cache.WaitForCacheSync(ctx.Done(), ctbInformer.Informer().HasSynced) {
    		t.Fatalf("Timed out waiting for informer to sync")
    	}
    
    	t.Run("big labelselector should cause error", func(t *testing.T) {
    		longString := strings.Builder{}
    		for i := 0; i < 63; i++ {
    			longString.WriteString("v")
    		}
    		matchLabels := map[string]string{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/accessors.go

    	GetMatchPolicy() *v1.MatchPolicyType
    	// GetNamespaceSelector gets the webhook NamespaceSelector field.
    	GetNamespaceSelector() *metav1.LabelSelector
    	// GetObjectSelector gets the webhook ObjectSelector field.
    	GetObjectSelector() *metav1.LabelSelector
    	// GetSideEffects gets the webhook SideEffects field.
    	GetSideEffects() *v1.SideEffectClass
    	// GetTimeoutSeconds gets the webhook TimeoutSeconds field.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top