Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for GroupResource (0.46 sec)

  1. pkg/registry/core/pod/storage/eviction_test.go

    				if !strings.Contains(err.Error(), tc.expectErr) {
    					t.Fatalf("expected err containing %q, got %v", tc.expectErr, err)
    				}
    			})
    		}
    	}
    }
    
    func resource(resource string) schema.GroupResource {
    	return schema.GroupResource{Group: "", Resource: resource}
    }
    
    type mockStore struct {
    	deleteCount int
    	pod         *api.Pod
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    )
    
    func newTestCacherWithoutSyncing(s storage.Interface) (*Cacher, storage.Versioner, error) {
    	prefix := "pods"
    	config := Config{
    		Storage:        s,
    		Versioner:      storage.APIObjectVersioner{},
    		GroupResource:  schema.GroupResource{Resource: "pods"},
    		ResourcePrefix: prefix,
    		KeyFunc:        func(obj runtime.Object) (string, error) { return storage.NamespaceKeyFunc(prefix, obj) },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		config := cacherstorage.Config{
    			Storage:        s,
    			Versioner:      storage.APIObjectVersioner{},
    			GroupResource:  schema.GroupResource{Resource: "pods"},
    			ResourcePrefix: podPrefix,
    			KeyFunc:        func(obj runtime.Object) (string, error) { return storage.NoNamespaceKeyFunc(podPrefix, obj) },
    			GetAttrsFunc:   getPodAttrs,
    			NewFunc:        newFunc,
    			NewListFunc:    newListFunc,
    			Codec:          sc.Codec,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    	go pr.Run(wc.stopCh)
    	wc.watchCache = newWatchCache(keyFunc, mockHandler, getAttrsFunc, versioner, indexers, testingclock.NewFakeClock(time.Now()), schema.GroupResource{Resource: "pods"}, pr)
    	// To preserve behavior of tests that assume a given capacity,
    	// resize it to th expected size.
    	wc.capacity = capacity
    	wc.cache = make([]*watchCacheEvent, capacity)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_pods_test.go

    					err = apierrors.NewNotFound(action.GetResource().GroupResource(), "configmap-name")
    				}
    				return true, tc.configMap, err
    			})
    			testKubelet.fakeKubeClient.AddReactor("get", "secrets", func(action core.Action) (bool, runtime.Object, error) {
    				var err error
    				if tc.secret == nil {
    					err = apierrors.NewNotFound(action.GetResource().GroupResource(), "secret-name")
    				}
    				return true, tc.secret, err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    					t.Fatalf("unexpected second conflict")
    				}
    				sawConflict = true
    				// simulated stale object - return a conflict
    				return nil, apierrors.NewConflict(example.SchemeGroupVersion.WithResource("pods").GroupResource(), "name", errors.New("foo"))
    			}
    			pod.Generation = 3
    			return pod, nil
    		}),
    		originalPod,
    	)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  7. pkg/printers/internalversion/printers.go

    	row := metav1.TableRow{
    		Object: runtime.RawExtension{Object: obj},
    	}
    
    	parentRefName := "<none>"
    	if obj.Spec.ParentRef != nil {
    		gr := schema.GroupResource{
    			Group:    obj.Spec.ParentRef.Group,
    			Resource: obj.Spec.ParentRef.Resource,
    		}
    		parentRefName = strings.ToLower(gr.String())
    		if obj.Spec.ParentRef.Namespace != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  8. pkg/controller/job/job_controller_test.go

    			wantRequeued: false,
    		},
    		"generic error": {
    			updateErr:    fmt.Errorf("update error"),
    			wantRequeued: true,
    		},
    		"conflict error": {
    			updateErr:    apierrors.NewConflict(schema.GroupResource{}, "", nil),
    			wantRequeued: true,
    		},
    	}
    	for name, tc := range cases {
    		t.Run(name, func(t *testing.T) {
    			t.Cleanup(setDurationDuringTest(&DefaultJobApiBackOff, fastJobApiBackoff))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  9. pkg/generated/openapi/zz_generated.openapi.go

    										Ref:     ref("k8s.io/kube-controller-manager/config/v1alpha1.GroupResource"),
    									},
    								},
    							},
    						},
    					},
    				},
    				Required: []string{"EnableGarbageCollector", "ConcurrentGCSyncs", "GCIgnoredResources"},
    			},
    		},
    		Dependencies: []string{
    			"k8s.io/kube-controller-manager/config/v1alpha1.GroupResource"},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
Back to top