- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for GroupResource (0.17 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/storagebackend/config.go
// ConfigForResource is a Config specialized to a particular `schema.GroupResource` type ConfigForResource struct { // Config is the resource-independent configuration Config // GroupResource is the relevant one GroupResource schema.GroupResource } // ForResource specializes to the given resource func (config *Config) ForResource(resource schema.GroupResource) *ConfigForResource { return &ConfigForResource{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:57:37 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/kubelet/util/manager/watch_based_manager.go
// individual watches. type objectCache struct { listObject listObjectFunc watchObject watchObjectFunc newObject newObjectFunc isImmutable isImmutableFunc groupResource schema.GroupResource clock clock.Clock maxIdleTime time.Duration lock sync.RWMutex items map[objectKey]*objectCacheItem stopped bool } const minIdleTime = 1 * time.Minute
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 11.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go
{Object: &v1.Pod{}}, } // set the size of the buffer of w.result to 0, so that the writes to // w.result is blocked. w = newCacheWatcher(0, filter, forget, storage.APIObjectVersioner{}, time.Now(), false, schema.GroupResource{Resource: "pods"}, "") go w.processInterval(context.Background(), intervalFromEvents(initEvents), 0) w.Stop() if err := wait.PollImmediate(1*time.Second, 5*time.Second, func() (bool, error) { lock.RLock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 09:20:10 UTC 2024 - 22.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go
listResourceVersion: 0, eventHandler: eventHandler, clock: clock, versioner: versioner, groupResource: groupResource, waitingUntilFresh: progressRequester, } metrics.WatchCacheCapacity.WithLabelValues(groupResource.String()).Set(float64(wc.capacity)) wc.cond = sync.NewCond(wc.RLocker()) wc.indexValidator = wc.isIndexValidLocked return wc }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 10:20:57 UTC 2024 - 26.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go
// An underlying storage.Interface. Storage storage.Interface // An underlying storage.Versioner. Versioner storage.Versioner // The GroupResource the cacher is caching. Used for disambiguating *unstructured.Unstructured (CRDs) in logging // and metrics. GroupResource schema.GroupResource // The Cache will be caching objects of a given Type and assumes that they
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 51.8K bytes - Viewed (0) -
cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go
return true, nil, apierrors.NewAlreadyExists( schema.GroupResource{}, "name") }) }, setupSuperAdminClient: func(client *clientsetfake.Clientset) { client.PrependReactor("create", "clusterrolebindings", func(action clientgotesting.Action) (bool, runtime.Object, error) { return true, nil, apierrors.NewAlreadyExists( schema.GroupResource{}, "name") }) }, expectedError: false, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:04:18 UTC 2024 - 39.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 26.5K bytes - Viewed (0) -
pkg/controlplane/instance_test.go
// are no more beta resources enabled by default. legacyBetaResourcesWithoutStableEquivalents := map[schema.GroupResource]bool{ flowcontrolv1bet3.SchemeGroupVersion.WithResource("flowschemas").GroupResource(): true, flowcontrolv1bet3.SchemeGroupVersion.WithResource("prioritylevelconfigurations").GroupResource(): true, } config := DefaultAPIResourceConfigSource() for gvr, enable := range config.ResourceConfigs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 03 11:50:04 UTC 2024 - 21.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/tls_test.go
KeyFile: keyFile, TrustedCAFile: caFile, TracerProvider: noopoteltrace.NewTracerProvider(), }, Codec: codec, } storage, destroyFunc, err := newETCD3Storage(*cfg.ForResource(schema.GroupResource{Resource: "pods"}), nil, nil, "") defer destroyFunc() if err != nil { t.Fatal(err) } err = storage.Create(context.TODO(), "/abc", &example.Pod{}, nil, 0) if err != nil { t.Fatalf("Create failed: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:57:37 UTC 2024 - 3.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go
Interface: etcdStorage, Errors: 1, } config := Config{ Storage: wrappedStorage, Versioner: storage.APIObjectVersioner{}, GroupResource: schema.GroupResource{Resource: "pods"}, ResourcePrefix: setupOpts.resourcePrefix, KeyFunc: setupOpts.keyFunc, GetAttrsFunc: GetPodAttrs, NewFunc: newPod, NewListFunc: newPodList,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 17K bytes - Viewed (0)