Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for metavar (0.25 sec)

  1. pkg/printers/internalversion/printers.go

    )
    
    func printPodList(podList *api.PodList, options printers.GenerateOptions) ([]metav1.TableRow, error) {
    	rows := make([]metav1.TableRow, 0, len(podList.Items))
    	for i := range podList.Items {
    		r, err := printPod(&podList.Items[i], options)
    		if err != nil {
    			return nil, err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  2. pkg/printers/internalversion/printers_test.go

    	table := []struct {
    		node     api.Node
    		expected []metav1.TableRow
    	}{
    		{
    			node: api.Node{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo9"},
    			},
    			// Columns: Name, Status, Roles, Age, KubeletVersion
    			expected: []metav1.TableRow{{Cells: []interface{}{"foo9", "Unknown", "<none>", "<unknown>", ""}}},
    		},
    		{
    			node: api.Node{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:   "foo10",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  3. pkg/apis/apps/validation/validation_test.go

    		"zero-length ID": {
    			ObjectMeta: metav1.ObjectMeta{Name: "", Namespace: metav1.NamespaceDefault},
    			Spec: apps.DaemonSetSpec{
    				Selector: &metav1.LabelSelector{MatchLabels: validSelector},
    				Template: validPodTemplate.Template,
    			},
    		},
    		"missing-namespace": {
    			ObjectMeta: metav1.ObjectMeta{Name: "abc-123"},
    			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)
  4. pkg/apis/batch/validation/validation_test.go

    func getValidManualSelector() *metav1.LabelSelector {
    	return &metav1.LabelSelector{
    		MatchLabels: map[string]string{"a": "b"},
    	}
    }
    
    func getValidPodTemplateSpecForManual(selector *metav1.LabelSelector) api.PodTemplateSpec {
    	return api.PodTemplateSpec{
    		ObjectMeta: metav1.ObjectMeta{
    			Labels: selector.MatchLabels,
    		},
    		Spec: api.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  5. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    									Status:             v1.ConditionUnknown,
    									LastHeartbeatTime:  metav1.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC),
    									LastTransitionTime: metav1.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC),
    								},
    							},
    						},
    					},
    					{
    						ObjectMeta: metav1.ObjectMeta{
    							Name:              "node1",
    							CreationTimestamp: metav1.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC),
    							Labels: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	obj := &example.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "foo", UID: "random-uid"},
    	}
    	result, err := s.finalizeDelete(genericapirequest.NewContext(), obj, false, &metav1.DeleteOptions{})
    	if err != nil {
    		t.Fatalf("unexpected err: %s", err)
    	}
    	returnedObj := result.(*metav1.Status)
    
    	expectedObj := &metav1.Status{
    		Status: metav1.StatusSuccess,
    		Details: &metav1.StatusDetails{
    			Name:  "foo",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  7. pkg/registry/batch/job/strategy_test.go

    			job: &batch.Job{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:            "myjob",
    					Namespace:       metav1.NamespaceDefault,
    					ResourceVersion: "0",
    					Annotations:     map[string]string{"foo": "bar"},
    				},
    				Spec: batch.JobSpec{
    					Selector: &metav1.LabelSelector{
    						MatchLabels:      map[string]string{"a": "b"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  8. pkg/apis/admissionregistration/validation/validation_test.go

    		config: &admissionregistration.ValidatingAdmissionPolicy{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "config",
    			},
    			Spec: admissionregistration.ValidatingAdmissionPolicySpec{
    				Validations: []admissionregistration.Validation{{
    					Expression: "object.x < 100",
    					Reason: func() *metav1.StatusReason {
    						r := metav1.StatusReason("other")
    						return &r
    					}(),
    				}},
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 147.1K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_node_status_test.go

    	alreadyExists := &apierrors.StatusError{
    		ErrStatus: metav1.Status{Reason: metav1.StatusReasonAlreadyExists},
    	}
    
    	conflict := &apierrors.StatusError{
    		ErrStatus: metav1.Status{Reason: metav1.StatusReasonConflict},
    	}
    
    	newNode := func(cmad bool) *v1.Node {
    		node := &v1.Node{
    			ObjectMeta: metav1.ObjectMeta{
    				Labels: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    				w.Add(&obj)
    			},
    			expected: []*metav1.WatchEvent{
    				{
    					Type: "ADDED",
    					Object: runtime.RawExtension{
    						Raw: []byte(strings.TrimSpace(runtime.EncodeOrDie(s, &metav1.Table{
    							TypeMeta: metav1.TypeMeta{Kind: "Table", APIVersion: "meta.k8s.io/v1beta1"},
    							ListMeta: metav1.ListMeta{ResourceVersion: "10"},
    							ColumnDefinitions: []metav1.TableColumnDefinition{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
Back to top