Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 84 for Tables (0.29 sec)

  1. pkg/apis/apps/validation/validation_test.go

    			field.Invalid(field.NewPath("spec", "template", "metadata", "labels"), nil, ""), // selector is empty, labels are not, so select doesn't match labels
    		},
    	}, {
    		name: "selector_doesnt_match",
    		set:  mkStatefulSet(&validPodTemplate, tweakSelectorLabels(map[string]string{"foo": "bar"})),
    		errs: field.ErrorList{
    			field.Invalid(field.NewPath("spec", "template", "metadata", "labels"), nil, ""),
    		},
    	}, {
    		name: "negative_replicas",
    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. pilot/pkg/networking/core/cluster_builder_test.go

    							LoadBalancingWeight: &wrappers.UInt32Value{
    								Value: 30,
    							},
    						},
    					},
    				},
    			},
    		},
    		{
    			name:   "subset cluster endpoints with labels",
    			mesh:   testMesh(),
    			labels: labels.Instance{"version": "v1"},
    			instances: []*model.ServiceInstance{
    				{
    					Service:     service,
    					ServicePort: servicePort,
    					Endpoint: &model.IstioEndpoint{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  3. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    		}
    		if len(node0.Labels) != len(test.ExpectedLabels) {
    			t.Errorf("%s: Unexpected number of taints: expected %d, got %d",
    				test.Name, len(test.ExpectedLabels), len(node0.Labels))
    		}
    		for key, expectedValue := range test.ExpectedLabels {
    			actualValue, ok := node0.Labels[key]
    			if !ok {
    				t.Errorf("%s: Can't find label %v in %v", test.Name, key, node0.Labels)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  4. pkg/registry/batch/job/strategy_test.go

    					}},
    			},
    		},
    		"job with non-batch labels and without batch labels in pod template": {
    			job: &batch.Job{
    				ObjectMeta: validObjectMeta,
    				Spec: batch.JobSpec{
    					Selector:       defaultSelector,
    					ManualSelector: ptr.To(false),
    					Template: api.PodTemplateSpec{
    						ObjectMeta: metav1.ObjectMeta{
    							Labels: map[string]string{},
    						},
    						Spec: validPodSpec,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_node_status_test.go

    			},
    		},
    		{
    			name: "make sure existing labels do not get deleted when initial node has no opinion",
    			initialNode: &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{},
    				},
    			},
    			existingNode: &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{
    						v1.LabelHostname:                "new-hostname",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  6. pkg/controller/daemon/daemon_controller_test.go

    		return fmt.Errorf("failed to create pod for DaemonSet: %w", err)
    	}
    
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Labels:    template.Labels,
    			Namespace: namespace,
    		},
    	}
    
    	pod.Name = names.SimpleNameGenerator.GenerateName(fmt.Sprintf("%p-", pod))
    
    	template.Spec.DeepCopyInto(&pod.Spec)
    
    	f.podStore.Update(pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  7. cmd/metrics-v2.go

    		labels, values := getOrderedLabelValueArrays(metric.VariableLabels)
    		values = append(values, globalLocalNodeName)
    		labels = append(labels, serverName)
    
    		if metric.Description.Type == histogramMetric {
    			if metric.Histogram == nil {
    				return true
    			}
    			for k, v := range metric.Histogram {
    				labels = append(labels, metric.HistogramBucketLabel)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  8. pkg/apis/batch/validation/validation_test.go

    					Template: validPodTemplateSpecForGenerated,
    				},
    			},
    			opts: JobValidationOptions{RequirePrefixedLabels: true},
    		},
    		"spec.template.metadata.labels: Invalid value: map[string]string{\"y\":\"z\"}: `selector` does not match template `labels`": {
    			job: batch.Job{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      "myjob",
    					Namespace: metav1.NamespaceDefault,
    					UID:       types.UID("1a2b3c"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  9. pkg/config/validation/validation_test.go

    			Subsets: []*networking.Subset{
    				{Name: "v1", Labels: map[string]string{"version": "v1"}},
    				{Name: "v2", Labels: map[string]string{"version": "v2"}},
    			},
    		}, valid: true},
    
    		{name: "simple destination rule with empty selector labels", in: &networking.DestinationRule{
    			Host: "reviews",
    			Subsets: []*networking.Subset{
    				{Name: "v1", Labels: map[string]string{"version": "v1"}},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  10. pkg/config/validation/validation.go

    			errs = AppendValidation(errs, fmt.Errorf("config namespace and gateway name cannot be empty"))
    		}
    
    		// namespace and name must be DNS labels
    		if !labels.IsDNS1123Label(parts[0]) {
    			errs = AppendValidation(errs, fmt.Errorf("invalid value for namespace: %q", parts[0]))
    		}
    
    		if !labels.IsDNS1123Label(parts[1]) && !gatewaySemantics {
    			errs = AppendValidation(errs, fmt.Errorf("invalid value for gateway name: %q", parts[1]))
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top