Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,953 for metavar (0.23 sec)

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

    			A: rbac.RoleBinding{
    				ObjectMeta: metav1.ObjectMeta{Namespace: metav1.NamespaceDefault, Name: "default"},
    				RoleRef:    rbac.RoleRef{APIGroup: "rbac.GroupName", Kind: "ClusterRole", Name: "valid"},
    			},
    			T: field.ErrorTypeNotSupported,
    			F: "roleRef.apiGroup",
    		},
    		"bad kind": {
    			A: rbac.RoleBinding{
    				ObjectMeta: metav1.ObjectMeta{Namespace: metav1.NamespaceDefault, Name: "default"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  2. pkg/apis/extensions/v1beta1/defaults_test.go

    				Spec: extensionsv1beta1.DaemonSetSpec{
    					Template: defaultTemplate,
    				},
    			},
    			expected: &extensionsv1beta1.DaemonSet{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: defaultLabels,
    				},
    				Spec: extensionsv1beta1.DaemonSetSpec{
    					Selector: &metav1.LabelSelector{
    						MatchLabels: defaultLabels,
    					},
    					Template: defaultTemplate,
    					UpdateStrategy: extensionsv1beta1.DaemonSetUpdateStrategy{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  3. plugin/pkg/admission/storage/storageclass/setdefault/admission_test.go

    		TypeMeta: metav1.TypeMeta{
    			Kind: "StorageClass",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "nondefault2",
    		},
    		Provisioner: "nondefault1",
    	}
    	// Class with empty default annotation (=non-default)
    	classWithEmptyDefault := &storagev1.StorageClass{
    		TypeMeta: metav1.TypeMeta{
    			Kind: "StorageClass",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name: "nondefault2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 19 04:00:48 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/status_test.go

    	"testing"
    
    	"k8s.io/apimachinery/pkg/api/errors"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    func TestBadStatusErrorToAPIStatus(t *testing.T) {
    	err := errors.StatusError{}
    	actual := ErrorToAPIStatus(&err)
    	expected := &metav1.Status{
    		TypeMeta: metav1.TypeMeta{Kind: "Status", APIVersion: "v1"},
    		Status:   metav1.StatusFailure,
    		Code:     500,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 05 13:03:34 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  6. 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)
  7. pkg/scheduler/apis/config/v1/defaults_test.go

    				},
    				LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
    					LeaderElect:       ptr.To(true),
    					LeaseDuration:     metav1.Duration{Duration: 15 * time.Second},
    					RenewDeadline:     metav1.Duration{Duration: 10 * time.Second},
    					RetryPeriod:       metav1.Duration{Duration: 2 * time.Second},
    					ResourceLock:      "leases",
    					ResourceNamespace: "kube-system",
    					ResourceName:      "kube-scheduler",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. pkg/registry/core/pod/storage/eviction_test.go

    			makeDeleteOptions: func(pod *api.Pod) *metav1.DeleteOptions {
    				return &metav1.DeleteOptions{Preconditions: &metav1.Preconditions{UID: &pod.UID}}
    			},
    		},
    		{
    			name:       "invalid uid",
    			initialPod: true,
    			makeDeleteOptions: func(pod *api.Pod) *metav1.DeleteOptions {
    				badUID := pod.UID + "1"
    				return &metav1.DeleteOptions{Preconditions: &metav1.Preconditions{UID: &badUID}}
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  9. pilot/pkg/model/kstatus/helper.go

    	return w.Status
    }
    
    var EmptyCondition = metav1.Condition{}
    
    func GetCondition(conditions []metav1.Condition, condition string) metav1.Condition {
    	for _, cond := range conditions {
    		if cond.Type == condition {
    			return cond
    		}
    	}
    	return EmptyCondition
    }
    
    // UpdateConditionIfChanged updates a condition if it has been changed.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. pkg/registry/core/persistentvolume/strategy_test.go

    		map[string]string{"name": "metadata.name"},
    	)
    }
    
    func TestStatusUpdate(t *testing.T) {
    	now := metav1.Now()
    	origin := metav1.NewTime(now.Add(time.Hour))
    	later := metav1.NewTime(now.Add(time.Hour * 2))
    	NowFunc = func() metav1.Time { return now }
    	defer func() {
    		NowFunc = metav1.Now
    	}()
    	tests := []struct {
    		name        string
    		fg          bool
    		oldObj      *api.PersistentVolume
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top