- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ForceUpdateIfOlder (0.23 sec)
-
pkg/kubelet/container/testing/mock_runtime_cache.go
return m.recorder } // ForceUpdateIfOlder mocks base method. func (m *MockRuntimeCache) ForceUpdateIfOlder(arg0 context.Context, arg1 time.Time) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ForceUpdateIfOlder", arg0, arg1) ret0, _ := ret[0].(error) return ret0 } // ForceUpdateIfOlder indicates an expected call of ForceUpdateIfOlder.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 4K bytes - Viewed (0) -
pkg/kubelet/container/runtime_cache_test.go
runtime.PodList = newpods // An older timestamp should not force an update. cache.ForceUpdateIfOlder(ctx, time.Now().Add(-20*time.Minute)) actual := cache.GetCachedPods() comparePods(t, oldpods, actual) // A newer timestamp should force an update. cache.ForceUpdateIfOlder(ctx, time.Now().Add(20*time.Second)) actual = cache.GetCachedPods() comparePods(t, newpods, actual)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 05 13:02:13 UTC 2022 - 2.2K bytes - Viewed (0) -
pkg/kubelet/container/runtime_cache.go
package container import ( "context" "sync" "time" ) // RuntimeCache is in interface for obtaining cached Pods. type RuntimeCache interface { GetPods(context.Context) ([]*Pod, error) ForceUpdateIfOlder(context.Context, time.Time) error } type podsGetter interface { GetPods(context.Context, bool) ([]*Pod, error) } // NewRuntimeCache creates a container runtime cache.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 09 04:03:51 UTC 2023 - 2.9K bytes - Viewed (0) -
pkg/kubelet/container/testing/fake_runtime.go
return &FakeRuntimeCache{getter} } func (f *FakeRuntimeCache) GetPods(ctx context.Context) ([]*kubecontainer.Pod, error) { return f.getter.GetPods(ctx, false) } func (f *FakeRuntimeCache) ForceUpdateIfOlder(context.Context, time.Time) error { return nil } // UpdatePodCIDR fulfills the cri interface. func (f *FakeRuntime) UpdatePodCIDR(_ context.Context, c string) error { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 14 00:23:50 UTC 2024 - 13.9K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods.go
} // Retrieve the list of running containers from the runtime to perform cleanup. // We need the latest state to avoid delaying restarts of static pods that reuse // a UID. if err := kl.runtimeCache.ForceUpdateIfOlder(ctx, kl.clock.Now()); err != nil { klog.ErrorS(err, "Error listing containers") return err } runningRuntimePods, err := kl.runtimeCache.GetPods(ctx) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 101.2K bytes - Viewed (0)