kubernetes/pkg/kubelet/cm
Swati Sehgal 937d330393 node: topologymgr: Remove ResourceAllocator as TM is always enabled
With Topology Manager enabled by default, we no longer need
`resourceAllocator` as Topology Manager serves as the main
PodAdmitHandler completely responsible for admission check
based on hints received from the hintProviders and the
subsequent allocation of the corresponding resources to a
pod as can be seen here:
https://github.com/kubernetes/kubernetes/blob/v1.26.0/pkg/kubelet/cm/topologymanager/scope.go#L150

With regard to DRA, the passing of `cm.draManager` into
resourceAllocator seems redundant as no admission checks
(and allocation of resources handled by DRA) is taking place
in `Admit` method of resourceAllocator. DRA has a completely
different model to the rest of the resource managers where
pod is only scheduled on a node once resources are reserved
for it. Because of this, admission checks or waiting for
resources to be provisioned after the pod has been scheduled
on the node is not required.

Before making the above change, it was verified that DRA Manager
is instantiated in `NewContainerManager`:
https://github.com/kubernetes/kubernetes/blob/v1.26.0/pkg/kubelet/cm/container_manager_linux.go#L318

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-03-06 12:51:11 +00:00
..
admission smtalign: cm: factor out admission response 2021-07-08 23:15:37 +02:00
containermap cpu manager policy set to none, no one remove container id from container map, lead memory leak 2022-03-30 23:25:05 +08:00
cpumanager Merge pull request #114114 from ffromani/full-pcpus-stricter-precheck-issue113537 2023-03-02 09:04:56 -08:00
cpuset cpuset: Convert Fatalf to Errrof in tests 2023-02-21 05:41:16 +00:00
devicemanager Replaces path.Operation with filepath.Operation (kubelet) 2022-11-08 16:05:48 +00:00
dra DRA: pass CDI devices through CRI CDIDevice field 2023-02-28 19:21:20 +02:00
memorymanager This commit contains the following: 2023-02-24 18:21:21 +00:00
topologymanager node: topology-mgr: code optimization 2023-02-15 14:04:10 +00:00
util generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
cgroup_manager_linux_test.go This commit contains the following: 2023-02-24 18:21:21 +00:00
cgroup_manager_linux.go This commit contains the following: 2023-02-24 18:21:21 +00:00
cgroup_manager_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
cgroup_manager_unsupported.go This commit contains the following: 2023-02-24 18:21:21 +00:00
container_manager_linux_test.go Merge pull request #111371 from sivchari/improve-naming 2022-12-14 02:23:37 -08:00
container_manager_linux.go node: topologymgr: Remove ResourceAllocator as TM is always enabled 2023-03-06 12:51:11 +00:00
container_manager_stub.go This commit contains the following: 2023-02-24 18:21:21 +00:00
container_manager_unsupported.go kubelet: add support for dynamic resource allocation 2022-11-11 21:58:03 +01:00
container_manager_windows.go kubelet: prepare DRA resources before CNI setup 2023-02-06 20:40:11 +02:00
container_manager.go node: topologymgr: trivial internal variable renaming 2023-03-06 12:51:11 +00:00
fake_container_manager.go kubelet: prepare DRA resources before CNI setup 2023-02-06 20:40:11 +02:00
fake_internal_container_lifecycle.go Make CRI v1 the default and allow a fallback to v1alpha2 2021-11-17 11:05:05 -08:00
fake_pod_container_manager.go This commit contains the following: 2023-02-24 18:21:21 +00:00
helpers_linux_test.go Merge pull request #111371 from sivchari/improve-naming 2022-12-14 02:23:37 -08:00
helpers_linux.go In-place Pod Vertical Scaling - core implementation 2023-02-24 18:21:21 +00:00
helpers_unsupported.go In-place Pod Vertical Scaling - core implementation 2023-02-24 18:21:21 +00:00
helpers.go Enable allocatable support for Windows nodes 2018-10-30 11:17:23 +08:00
internal_container_lifecycle_linux.go Make CRI v1 the default and allow a fallback to v1alpha2 2021-11-17 11:05:05 -08:00
internal_container_lifecycle_unsupported.go Make CRI v1 the default and allow a fallback to v1alpha2 2021-11-17 11:05:05 -08:00
internal_container_lifecycle_windows.go Make CRI v1 the default and allow a fallback to v1alpha2 2021-11-17 11:05:05 -08:00
internal_container_lifecycle.go node: topologymgr: GA graduation implies Feature Gate is ON by default 2023-03-06 12:51:05 +00:00
node_container_manager_linux_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
node_container_manager_linux.go fix: rename 2022-08-26 00:44:31 +09:00
OWNERS Cleanup OWNERS files (No Activity in the last year) 2021-12-15 10:34:02 -05:00
pod_container_manager_linux_test.go chore: use require instead of assert 2022-08-08 21:06:38 +08:00
pod_container_manager_linux.go This commit contains the following: 2023-02-24 18:21:21 +00:00
pod_container_manager_stub.go In-place Pod Vertical Scaling - core implementation 2023-02-24 18:21:21 +00:00
pod_container_manager_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
qos_container_manager_linux_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
qos_container_manager_linux.go logging: fix names of keys 2023-01-23 14:24:29 +01:00
types.go This commit contains the following: 2023-02-24 18:21:21 +00:00