Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for matchLabels (0.16 sec)

  1. 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)
  2. pkg/registry/batch/job/strategy_test.go

    func TestJobStrategy_ValidateUpdate(t *testing.T) {
    	ctx := genericapirequest.NewDefaultContext()
    	validSelector := &metav1.LabelSelector{
    		MatchLabels: map[string]string{"a": "b"},
    	}
    	validPodTemplateSpec := api.PodTemplateSpec{
    		ObjectMeta: metav1.ObjectMeta{
    			Labels: validSelector.MatchLabels,
    		},
    		Spec: api.PodSpec{
    			RestartPolicy: api.RestartPolicyOnFailure,
    			DNSPolicy:     api.DNSClusterFirst,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  3. pkg/apis/admissionregistration/validation/validation_test.go

    					return &r
    				}(),
    				MatchConstraints: &admissionregistration.MatchResources{
    					NamespaceSelector: &metav1.LabelSelector{
    						MatchLabels: map[string]string{"a": "b"},
    					},
    					ObjectSelector: &metav1.LabelSelector{
    						MatchLabels: map[string]string{"a": "b"},
    					},
    					MatchPolicy: func() *admissionregistration.MatchPolicyType {
    						r := admissionregistration.MatchPolicyType("Exact")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 147.1K bytes
    - Viewed (0)
  4. pkg/config/validation/validation_test.go

    				Selector: &api.WorkloadSelector{
    					MatchLabels: map[string]string{
    						"app":     "",
    						"version": "v1",
    					},
    				},
    			},
    			valid: true,
    		},
    		{
    			name: "selector-empty-key",
    			in: &security_beta.AuthorizationPolicy{
    				Selector: &api.WorkloadSelector{
    					MatchLabels: map[string]string{
    						"app": "httpbin",
    						"":    "v1",
    					},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  5. pkg/controller/daemon/daemon_controller_test.go

    		},
    		Spec: apps.DaemonSetSpec{
    			RevisionHistoryLimit: &two,
    			UpdateStrategy: apps.DaemonSetUpdateStrategy{
    				Type: apps.OnDeleteDaemonSetStrategyType,
    			},
    			Selector: &metav1.LabelSelector{MatchLabels: simpleDaemonSetLabel},
    			Template: v1.PodTemplateSpec{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: simpleDaemonSetLabel,
    				},
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  6. pkg/printers/internalversion/printers_test.go

    							Image: "fake-image1",
    						},
    						{
    							Name:  "fake-container2",
    							Image: "fake-image2",
    						},
    					},
    				},
    			},
    			Selector: &metav1.LabelSelector{MatchLabels: map[string]string{"foo": "bar"}},
    		},
    		Status: apps.DeploymentStatus{
    			Replicas:            10,
    			UpdatedReplicas:     2,
    			AvailableReplicas:   1,
    			UnavailableReplicas: 4,
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  7. pkg/controller/job/job_controller_test.go

    		ObjectMeta: metav1.ObjectMeta{
    			Name:      name,
    			UID:       uuid.NewUUID(),
    			Namespace: metav1.NamespaceDefault,
    		},
    		Spec: batch.JobSpec{
    			Selector: &metav1.LabelSelector{
    				MatchLabels: map[string]string{"foo": "bar"},
    			},
    			Template: v1.PodTemplateSpec{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{
    						"foo": "bar",
    					},
    				},
    				Spec: v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  8. pkg/config/validation/validation.go

    	}
    	return
    }
    
    func validateWorkloadSelector(selector *type_beta.WorkloadSelector) Validation {
    	validation := Validation{}
    	if selector != nil {
    		for k, v := range selector.MatchLabels {
    			if k == "" {
    				err := fmt.Errorf("empty key is not supported in selector: %q", fmt.Sprintf("%s=%s", k, v))
    				validation = AppendValidation(validation, err)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  9. pkg/api/pod/util_test.go

    		},
    		{
    			name: "UpdateInvalidLabelSelector",
    			oldPodSpec: &api.PodSpec{
    				TopologySpreadConstraints: []api.TopologySpreadConstraint{
    					{
    						LabelSelector: &metav1.LabelSelector{
    							MatchLabels: map[string]string{"NoUppercaseOrSpecialCharsLike=Equals": "foo"},
    						},
    					},
    				},
    			},
    			wantOption: true,
    		},
    		{
    			name: "UpdateValidLabelSelector",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/cluster_test.go

    					},
    				},
    			},
    		},
    	}
    
    	// This workload-level beta policy doesn't affect CDS (yet).
    	peerAuthn := &authn_beta.PeerAuthentication{
    		Selector: &selectorpb.WorkloadSelector{
    			MatchLabels: map[string]string{
    				"version": "v1",
    			},
    		},
    		Mtls: &authn_beta.PeerAuthentication_MutualTLS{
    			Mode: authn_beta.PeerAuthentication_MutualTLS_STRICT,
    		},
    	}
    
    	mesh := testMesh()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
Back to top