- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for UpdateCache (0.14 sec)
-
pkg/kubelet/pleg/generic.go
isRunning bool // Locks the start/stop operation of Generic PLEG runningMu sync.Mutex // Indicates relisting related parameters relistDuration *RelistDuration // Mutex to serialize updateCache called by relist vs UpdateCache interface podCacheMutex sync.Mutex } // plegContainerState has a one-to-one mapping to the // kubecontainer.State except for the non-existent state. This state
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 19.3K bytes - Viewed (0) -
pkg/kubelet/container/runtime_cache.go
defer r.Unlock() if time.Since(r.cacheTime) > r.cachePeriod { if err := r.updateCache(ctx); err != nil { return nil, err } } return r.pods, nil } func (r *runtimeCache) ForceUpdateIfOlder(ctx context.Context, minExpectedCacheTime time.Time) error { r.Lock() defer r.Unlock() if r.cacheTime.Before(minExpectedCacheTime) { return r.updateCache(ctx) } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 09 04:03:51 UTC 2023 - 2.9K bytes - Viewed (0) -
cmd/data-scanner.go
into.addChild(h) // We scanned a folder, optionally send update. f.updateCache.deleteRecursive(h) f.updateCache.copyWithChildren(&f.newCache, h, folder.parent) f.sendUpdate() } } // Transfer existing if !into.Compacted { for _, folder := range existingFolders { h := hashPath(folder.name) f.updateCache.copyWithChildren(&f.oldCache, h, folder.parent) } } // Scan new...
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:43:17 UTC 2024 - 47.6K bytes - Viewed (0) -
pkg/kubelet/container/runtime_cache_fake.go
type TestRuntimeCache struct { runtimeCache } // UpdateCacheWithLock updates the cache with the lock. func (r *TestRuntimeCache) UpdateCacheWithLock() error { r.Lock() defer r.Unlock() return r.updateCache(context.Background()) } // GetCachedPods returns the cached pods. func (r *TestRuntimeCache) GetCachedPods() []*Pod { r.Lock() defer r.Unlock() return r.pods }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 05 13:02:13 UTC 2022 - 1.6K bytes - Viewed (0) -
pkg/kubelet/pleg/pleg.go
} // PodLifecycleEventGenerator contains functions for generating pod life cycle events. type PodLifecycleEventGenerator interface { Start() Watch() chan *PodLifecycleEvent Healthy() (bool, error) UpdateCache(*kubecontainer.Pod, types.UID) (error, bool) } // podLifecycleEventGeneratorHandler contains functions that are useful for different PLEGs // and need not be exposed to rest of the kubelet
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 26 16:14:26 UTC 2023 - 2.7K bytes - Viewed (0) -
pkg/ledger/smt.go
// duration for old nodes. func newSMT(hash func(data ...[]byte) []byte, updateCache cache.ExpiringCache, retentionDuration time.Duration) *smt { if updateCache == nil { updateCache = cache.NewTTL(forever, time.Second) } s := &smt{ hash: hash, trieHeight: len(hash([]byte("height"))) * 8, // hash any string to get output length
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 14K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/endpointslice.go
esLabelSelector := endpointSliceSelectorForService(name) slices := esc.slices.List(namespace, esLabelSelector) if len(slices) == 0 { log.Debugf("endpoint slices of (%s, %s) not found", name, namespace) return nil } if updateCache { // A cache update was requested. Rebuild the endpoints for these slices.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 16.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go
now := store.clock.Now() addEvent := func(key string, rv uint64, t time.Time) { event := &watchCacheEvent{ Key: key, ResourceVersion: rv, RecordTime: t, } store.updateCache(event) } // Initial LIST comes from the moment of RV=10. store.Replace(nil, "10") addEvent("key1", 20, now) // Force "key1" to rotate our of cache. later := now.Add(2 * eventFreshDuration)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 09:20:10 UTC 2024 - 35.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go
wcEvent.PrevObjLabels = previousElem.Labels wcEvent.PrevObjFields = previousElem.Fields } if err := func() error { w.Lock() defer w.Unlock() w.updateCache(wcEvent) w.resourceVersion = resourceVersion defer w.cond.Broadcast() return updateFunc(elem) }(); err != nil { return err } // Avoid calling event handler under lock.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 10:20:57 UTC 2024 - 26.2K bytes - Viewed (0) -
pkg/kubelet/pleg/evented.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 10:46:06 UTC 2024 - 16.4K bytes - Viewed (0)