- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for UpdateContainerResources (0.39 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/kuberuntime/kuberuntime_container.go
return config, cleanupAction, nil } func (m *kubeGenericRuntimeManager) updateContainerResources(pod *v1.Pod, container *v1.Container, containerID kubecontainer.ContainerID) error { containerResources := m.generateContainerResources(pod, container) if containerResources == nil { return fmt.Errorf("container %q updateContainerResources failed: cannot generate resources config", containerID.String()) } ctx := context.Background()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 54.7K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_manager.go
} } if err := m.updateContainerResources(pod, container, cInfo.kubeContainerID); err != nil { // Log error and abort as container updates need to succeed in the order determined by computePodResizeAction. // The recovery path is for SyncPod to keep retrying at later times until it succeeds. klog.ErrorS(err, "updateContainerResources failed", "container", container.Name, "cID", cInfo.kubeContainerID,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 02:01:31 UTC 2024 - 64.7K 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) -
pkg/kubelet/cm/memorymanager/memory_manager_test.go
func (p *mockPolicy) GetAllocatableMemory(s state.State) []state.Block { return []state.Block{} } 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: Wed Apr 05 13:01:40 UTC 2023 - 70.2K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_manager_test.go
err := m.updatePodContainerResources(pod, tc.resourceName, containersToUpdate) assert.NoError(t, err, dsc) if tc.invokeUpdateResources { assert.Contains(t, fakeRuntime.Called, "UpdateContainerResources", dsc) } for idx := range pod.Spec.Containers { assert.Equal(t, tc.expectedCurrentLimits[idx].Memory().Value(), containersToUpdate[idx].currentContainerResources.memoryLimit, dsc)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 96K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.15.md
- The init container can now get its own field value as environment variable values using downwardAPI support. ([#75109](https://github.com/kubernetes/kubernetes/pull/75109), [@yuchengwu](https://github.com/yuchengwu)) - UpdateContainerResources is no longer recorded as a `container_status` operation. It now uses the label `update_container`. ([#75278](https://github.com/kubernetes/kubernetes/pull/75278), [@Nessex](https://github.com/Nessex))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 13:44:43 UTC 2022 - 278.9K bytes - Viewed (0)