- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for NewStore (0.15 sec)
-
pilot/pkg/autoregistration/internal/state/store.go
type StoreCallbacks interface { // IsControllerOf returns true if a given WorkloadEntry is connected // to this istiod instance. IsControllerOf(wle *config.Config) bool } // NewStore returns a new Store instance. func NewStore(store model.ConfigStoreController, cb StoreCallbacks) *Store { return &Store{ store: store, cb: cb, } } // UpdateHealth updates the associated WorkloadEntries health status
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3.3K bytes - Viewed (0) -
pilot/pkg/config/memory/store.go
// It is with validation func Make(schemas collection.Schemas) model.ConfigStore { return newStore(schemas, false) } // MakeSkipValidation creates an in-memory config store from a config schemas // It is without validation func MakeSkipValidation(schemas collection.Schemas) model.ConfigStore { return newStore(schemas, true) } func newStore(schemas collection.Schemas, skipValidation bool) model.ConfigStore { out := store{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 26 01:14:27 UTC 2023 - 6.3K bytes - Viewed (0) -
pkg/kubelet/util/manager/watch_based_manager.go
items: make(map[objectKey]*objectCacheItem), } go wait.Until(store.startRecycleIdleWatch, time.Minute, stopCh) go store.shutdownWhenStopped(stopCh) return store } func (c *objectCache) newStore() *cacheStore { // TODO: We may consider created a dedicated store keeping just a single // item, instead of using a generic store implementation for this purpose.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 11.6K bytes - Viewed (0) -
pkg/controller/job/tracking_utils.go
// NewUIDTrackingControllerExpectations returns a wrapper around // ControllerExpectations that is aware of deleteKeys. func newUIDTrackingExpectations() *uidTrackingExpectations { return &uidTrackingExpectations{store: cache.NewStore(uidSetKeyFunc)} } func hasJobTrackingFinalizer(pod *v1.Pod) bool { for _, fin := range pod.Finalizers { if fin == batch.JobTrackingFinalizer { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 14 05:40:02 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/controller/job/backoff_utils.go
} if ok { err = s.store.Delete(b) if err != nil { return err } } return nil } func newBackoffStore() *backoffStore { return &backoffStore{ store: cache.NewStore(backoffRecordKeyFunc), } } var backoffRecordKeyFunc = func(obj interface{}) (string, error) { if u, ok := obj.(*backoffRecord); ok { return u.key, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 07:46:41 UTC 2024 - 8.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go
return newStore(c, codec, newFunc, newListFunc, prefix, resourcePrefix, groupResource, transformer, leaseManagerConfig) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 11:56:42 UTC 2024 - 35.2K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/pv_controller_test.go
} } } // TestControllerCache tests func storeObjectUpdate() func TestControllerCache(t *testing.T) { // Cache under test c := cache.NewStore(cache.DeletionHandlingMetaNamespaceKeyFunc) // Store new PV storeVersion(t, "Step1", c, "1", true) // Store the same PV storeVersion(t, "Step2", c, "1", true) // Store newer PV
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 43.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go
for _, opt := range opts { opt(&setupOpts) } client := setupOpts.client(t) if setupOpts.recorderEnabled { client.KV = &clientRecorder{KV: client.KV} } store := newStore( client, setupOpts.codec, setupOpts.newFunc, setupOpts.newListFunc, setupOpts.prefix, setupOpts.resourcePrefix, setupOpts.groupResource, setupOpts.transformer,
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/controller/volume/persistentvolume/pv_controller_base.go
controller := &PersistentVolumeController{ volumes: newPersistentVolumeOrderedIndex(), claims: cache.NewStore(cache.DeletionHandlingMetaNamespaceKeyFunc), kubeClient: p.KubeClient, eventBroadcaster: eventBroadcaster, eventRecorder: eventRecorder,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 08:42:31 UTC 2024 - 29.5K bytes - Viewed (0) -
pilot/pkg/autoregistration/controller.go
maxConnectionAge: maxConnAge, } c.queue = controllers.NewQueue("unregister_workloadentry", controllers.WithMaxAttempts(maxRetries), controllers.WithGenericReconciler(c.unregisterWorkload)) c.stateStore = state.NewStore(store, c) c.healthController = health.NewController(c.stateStore, maxRetries) c.setupAutoRecreate() return c } func (c *Controller) Run(stop <-chan struct{}) { if c == nil { return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 16 00:00:36 UTC 2024 - 26.4K bytes - Viewed (0)