- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for stopGracePeriodExpired (0.18 sec)
-
pkg/kubelet/cm/devicemanager/endpoint.go
allocate(devs []string) (*pluginapi.AllocateResponse, error) preStartContainer(devs []string) (*pluginapi.PreStartContainerResponse, error) setStopTime(t time.Time) isStopped() bool stopGracePeriodExpired() bool } type endpointImpl struct { mutex sync.Mutex resourceName string api pluginapi.DevicePluginClient stopTime time.Time client plugin.Client // for testing only }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 02 11:05:20 UTC 2022 - 3.9K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager.go
var allocatable = v1.ResourceList{} deletedResources := sets.New[string]() m.mutex.Lock() for resourceName, devices := range m.healthyDevices { eI, ok := m.endpoints[resourceName] if (ok && eI.e.stopGracePeriodExpired()) || !ok { // The resources contained in endpoints and (un)healthyDevices // should always be consistent. Otherwise, we run with the risk // of failing to garbage collect non-existing resources or devices.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 12:01:56 UTC 2024 - 43K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager_test.go
return m.allocateFunc(devs) } return nil, nil } func (m *MockEndpoint) setStopTime(t time.Time) {} func (m *MockEndpoint) isStopped() bool { return false } func (m *MockEndpoint) stopGracePeriodExpired() bool { return false } func makePod(limits v1.ResourceList) *v1.Pod { return &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ UID: uuid.NewUUID(), }, Spec: v1.PodSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 65K bytes - Viewed (0)