Kubernetes Prow Robot
04b6b7c12b
Merge pull request #97787 from heqg/expect-policy_static_test
...
fix typo of [expect] in pkg/kubelet/../policy_static_test.go
2021-01-07 00:53:45 -08:00
he.qingguo
d9368f53ad
fix typo of [expect] in pkg/kubelet/../policy_static_test.go
...
Signed-off-by: he.qingguo <he.qingguo@zte.com.cn >
2021-01-07 12:20:03 +08:00
Kubernetes Prow Robot
e456b45a2a
Merge pull request #97749 from heqg/errorf-wrap
...
The code in TestNonePolicyName does not need to wrap, so fix it.
2021-01-06 12:02:04 -08:00
he.qingguo
8826d12bb0
The code in TestNonePolicyName does not need to wrap, so fix it.
...
Signed-off-by: he.qingguo <he.qingguo@zte.com.cn >
2021-01-06 10:48:30 +08:00
Kubernetes Prow Robot
10c1c3acf6
Merge pull request #96906 from Rajalakshmi-Girish/issue-96853
...
Fixes the unit tests to be more tolerant with error messages
2021-01-05 17:09:51 -08:00
Kubernetes Prow Robot
4dc3a42712
Merge pull request #97427 from klueska/upstream-fix-cpumanager-race
...
Fix bug in CPUManager with race on container map access
2021-01-05 11:46:28 -08:00
Kubernetes Prow Robot
b37e9a440e
Merge pull request #97193 from JornShen/flaky_devicemanager_test
...
[flaky test] fix devicemanager TestDevicePluginReRegistrationProbeMode failed
2021-01-05 11:46:21 -08:00
Anthony ARNAUD
6013aaa370
use Lstat instead of Stat for unix socket on windows
2020-12-29 15:14:29 -05:00
Rajalakshmi-Girish
98948ad809
fixes the unit tests to be more tolerant with error messages
2020-12-24 04:47:46 +00:00
Kevin Klues
2fcbd2206d
Fix bug in CPUManager with race on map acccess
...
Signed-off-by: Kevin Klues <kklues@nvidia.com >
2020-12-21 19:11:53 +00:00
Anthony ARNAUD
8bdc3d8970
Port deviceManager in windows container manager
2020-12-16 00:25:26 -05:00
jornshen
93606f8ba3
[flaky test] fix devicemanager TestDevicePluginReRegistrationProbeMode fail
2020-12-10 21:07:49 +08:00
Seth Jennings
ee60ee26e0
kubelet: remove periodic messages from log-level 2
2020-11-30 11:34:00 -06:00
Alexey Perevalov
5e6aed4137
Fixes sigfault in case of empty TopologyInfo
...
Device plugin which implements v1beta interface can return nil in
Topology field
For example nvidia-gpu-deviceplugin
3520254b75/nvidia.go (L147)
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com >
2020-11-13 11:51:47 +03:00
Krzysztof Wiatrzyk
b7714918db
Run ./update-all.sh
...
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
sw.han
7b0ccaa1e9
Add tests for getPodDeviceRequest() for devicemanager
...
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
sw.han
ba1e8abce7
Add tests for GetPodTopologyHints() for devicemanager
...
* Add additional test cases returned by getPodScopeTestCases()
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
sw.han
1c4a1ba6ae
Update topology hints tests to use pod object for devicemanager
...
Pod object is more flexible to use and construct
* Update TestGetTopologyHints() to work according to new test cases
* Update topologyHintTestCase{} to include proper field
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
sw.han
7ad65bf22d
Add tests for GetPodTopologyHints() for cpumanager
...
* Add tests for getPodRequestedCPU()
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
sw.han
35b1f28d0f
Refactor topology hints tests for cpumanager
...
* Extract common tests cases that will be used for both GetTopologyHints()
and GetPodTopologyHints()
* Extract machineInfo as it will be used for both functions as well
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
Krzysztof Wiatrzyk
656a08afdf
Move scope specific tests from topologymanager under particular scopes
...
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
Krzysztof Wiatrzyk
c786c9a533
Move common tests from topologymanager under scope
...
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
Krzysztof Wiatrzyk
f5c0fe4ef6
Update topologymanager tests after adding scopes
...
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
Byonggon Chun
9da0912a33
Implement devicemanager.GetPodLevelTopologyHints() function
...
* Add podDevices() func
* Add getPodDeviceRequest() func
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
sw.han
27b7bcb41c
Implement the cpumanager.GetPodTopologyHints() function
...
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
Krzysztof Wiatrzyk
6db58b2e92
Update logging to use a format util
...
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:55 +01:00
Krzysztof Wiatrzyk
b2be584e5b
Implement topology manager scopes
...
* Add topologyScopeName parameter to NewManager().
* Add scope interface and structure that implement common logic
* Add pod scope & container scopes
* Add pod lifecycle functions
Co-authored-by: sw.han <sw.han@samsung.com >
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:54 +01:00
sw.han
f5997fe537
Add GetPodTopologyHints() interface to Topology/CPU/Device Manager
...
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:54 +01:00
sw.han
d070bff273
Add kubelet configuration flag 'topology-manager-scope'
...
add kubelet config option.
* --topology-manager-scope=[ container | pod ]
* default=container
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:54 +01:00
Alexey Perevalov
a8b8995ef2
Implement TopologyInfo and cpu_ids in podresources
...
It covers deviceplugin & cpumanager.
It has drawback, since cpuset and all other structs including cadvisor's keep
cpu as int, but for protobuf based interface is better to have fixed
int.
This patch also introduces additional interface CPUsProvider, while
DeviceProvider might have been extended too.
Checkpoint not covered by unit test.
Signed-off-by: Swati Sehgal <swsehgal@redhat.com >
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com >
2020-11-11 13:50:49 +03:00
Alexey Perevalov
62326a1846
Convert podDevices to struct
...
PodDevices will have its own guard
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com >
2020-11-11 13:50:48 +03:00
Alexey Perevalov
9f54dccc92
Change GetDevices interface
...
This change is necessary for supporting Topology in the ContainerDevices.
Signed-off-by: Alexey Perevalov <alexey.perevalov@huawei.com >
2020-11-11 12:41:31 +03:00
Kubernetes Prow Robot
bbc26ba7e6
Merge pull request #96048 from rphillips/fixes/device_plugin_stub_race
...
Deflake TestDevicePluginReRegistrationProbeMode: Devices of previous registered should be removed
2020-11-02 08:20:54 -08:00
Kubernetes Prow Robot
332d17c7f5
Merge pull request #95731 from farah/split-scheduler
...
Delete framework/v1alpha1 folder and change remaining import paths
2020-10-30 11:14:22 -07:00
Ryan Phillips
4fdfbc718c
devicemanager: fix race in stub
...
There is a race when the server is coming up and the subsequent dial on
the socket. Fix the race with a PollImmediate retry.
2020-10-30 11:42:01 -05:00
Kubernetes Prow Robot
94cedd9f14
Merge pull request #95720 from draveness/feature/topology-manager-format
...
style: update comments in topology manager
2020-10-27 10:36:38 -07:00
draveness
60d3f99b1f
style: update comments in topology manager
2020-10-23 18:20:50 +08:00
Ali
bfdeda58b7
Delete framework/v1alpha1 folder and change remaining import paths
2020-10-23 13:16:13 +11:00
chenyw1990
009d46f834
write checkpoint only when allocated devices updated.
2020-10-22 22:45:04 +08:00
Kubernetes Prow Robot
6ac2930ef0
Merge pull request #94574 from auxten/pkg-kubelet-staticchecks
...
Fix pkg/kubelet static checks
2020-09-21 21:22:47 -07:00
Srini Brahmaroutu
fbe5daed73
Change code to use staging/k8s.io/mount-utils
2020-09-16 21:51:24 -07:00
Kubernetes Prow Robot
09b3f6dbb3
Merge pull request #93214 from trashhalo/prefer-error
...
test: prefer NoError/Error over Nil/NotNil
2020-09-16 15:10:45 -07:00
Renaud Gaubert
4eadf40448
Run gofmt
...
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com >
2020-09-15 06:22:44 -07:00
Renaud Gaubert
ba95a8c641
run hack/update-vendor.sh
...
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com >
2020-09-15 05:13:33 -07:00
Renaud Gaubert
60304452ff
Move podresources api to k8s.io/kubelet/pkg/apis
...
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com >
2020-09-15 05:13:33 -07:00
Kubernetes Prow Robot
119c94214c
Merge pull request #93931 from SataQiu/fix-kubelet-swap-20200812
...
kubelet: assume that swap is disabled when /proc/swaps does not exist
2020-09-11 04:20:14 -07:00
Kubernetes Prow Robot
293a53f2c0
Merge pull request #94140 from derekwaynecarr/pid-ga
...
Promote PidLimits to GA
2020-09-09 06:35:52 -07:00
auxten
a9c1acc044
Fix staticchecks ST1005,S1002,S1008,S1039 in pkg/kubelet
2020-09-07 10:53:43 +08:00
Kubernetes Prow Robot
60c421b6f6
Merge pull request #94541 from liggitt/deflake-cpucheckpoint
...
Deflake cpumanager checkpoint unit tests
2020-09-04 18:47:40 -07:00
Stephen Solka
203679cc61
prefer NoError/Error over Nil/NotNil
2020-09-04 18:35:52 -04:00