- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for UpdateContainerResources (0.21 sec)
-
pkg/kubelet/kuberuntime/instrumented_services.go
recordError(operation, err) return out, err } func (in instrumentedRuntimeService) UpdateContainerResources(ctx context.Context, containerID string, resources *runtimeapi.ContainerResources) error { const operation = "update_container" defer recordOperation(operation, time.Now()) err := in.service.UpdateContainerResources(ctx, containerID, resources) recordError(operation, err) return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 10:46:06 UTC 2024 - 13.1K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_manager.go
"k8s.io/utils/cpuset" ) // ActivePodsFunc is a function that returns a list of pods to reconcile. type ActivePodsFunc func() []*v1.Pod type runtimeService interface { UpdateContainerResources(ctx context.Context, id string, resources *runtimeapi.ContainerResources) error } type policyName string // cpuManagerStateFileName is the file name where cpu manager stores its state
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 19.9K bytes - Viewed (0) -
pkg/kubelet/cm/memorymanager/memory_manager.go
const memoryManagerStateFileName = "memory_manager_state" // ActivePodsFunc is a function that returns a list of active pods type ActivePodsFunc func() []*v1.Pod type runtimeService interface { UpdateContainerResources(ctx context.Context, id string, resources *runtimeapi.ContainerResources) error } type sourcesReadyStub struct{} func (s *sourcesReadyStub) AddSource(source string) {}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 00:50:45 UTC 2023 - 17.1K bytes - Viewed (1) -
pkg/kubelet/kuberuntime/kuberuntime_container_test.go
assert.NoError(t, err) containerID := cStatus[0].ID err = m.updateContainerResources(pod, &pod.Spec.Containers[0], containerID) assert.NoError(t, err) // Verify container is updated assert.Contains(t, fakeRuntime.Called, "UpdateContainerResources")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 28K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_manager_test.go
} func (p *mockPolicy) GetAllocatableCPUs(m state.State) cpuset.CPUSet { return cpuset.New() } type mockRuntimeService struct { err error } func (rt mockRuntimeService) UpdateContainerResources(_ context.Context, id string, resources *runtimeapi.ContainerResources) error { return rt.err } type mockPodStatusProvider struct { podStatus v1.PodStatus found bool }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 13:16:15 UTC 2023 - 42.9K bytes - Viewed (0)