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
Krzysztof Wiatrzyk
ec552e6dc6
Add flag value validation of TopologyManagerPolicy
...
Signed-off-by: Krzysztof Wiatrzyk <k.wiatrzyk@samsung.com >
2020-11-12 12:25:54 +01:00
Krzysztof Wiatrzyk
a05eead211
Add flag value validation of TopologyManagerScope
...
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
andyzhangx
48ba8830cd
fix pull image error from multiple ACRs using azure managed identity
...
fix comments
fix comment
fix comments
fix comments
fix comments
fix comments
fix bazel
2020-11-12 09:51:26 +00:00
Kubernetes Prow Robot
12d9183da0
Merge pull request #95718 from SergeyKanzhelev/runtimeClass2
...
RuntimeClass GA
2020-11-12 00:44:51 -08:00
Sravanth Bangari
6c68ca5a9e
Choosing the right source VIP for local endpoints
2020-11-11 23:29:07 -08:00
Kubernetes Prow Robot
9223413a77
Merge pull request #95579 from masap/fix_cidr_warning
...
test: Fix using deprecated default cluster IPs
2020-11-11 22:38:49 -08:00
Kubernetes Prow Robot
bdac36b57e
Merge pull request #84206 from mucahitkurt/refactor/remove-mount-volume-check-orphaned-pod-cleanup
...
check volume directories instead of mounts for cleanupOrphanedPodDirs
2020-11-11 21:24:49 -08:00
Kubernetes Prow Robot
d233111f5b
Merge pull request #94196 from andrewsykim/registry-creds
...
kubelet: add alpha credential provider plugins
2020-11-11 19:59:11 -08:00
Rob Scott
b98cab7740
Updating EndpointSlice strategy to cover alpha NodeName field
2020-11-11 18:25:54 -08:00
Kubernetes Prow Robot
bffdc87241
Merge pull request #95282 from xing-yang/snapshot_ga
...
Move Snapshot to GA
2020-11-11 17:34:50 -08:00
Alvaro Aleman
801a52c06d
Allow debugging kubelet image pull times
...
This PR changes the buckets of the
kubelet_runtime_operation_duration_seconds metric to be
metrics.ExponentialBuckets(.005, 2.5, 14) in order to
allow debugging image pull times. Right now the biggest bucket is 10
seconds, which is an ordinary time frame to pull an image, making the
metric useless for the aforementioned usecase.
2020-11-11 20:18:36 -05:00
Rob Scott
ff46573692
Cleaning up EndpointSlice update validation tests
2020-11-11 16:50:50 -08:00
Rob Scott
506861c0a0
Removing "IP" from supported EndpointSlice address types in kube-proxy
2020-11-11 16:50:45 -08:00
Rob Scott
877ad98c53
Updating ControlPlane to support NodeName field
2020-11-11 16:50:40 -08:00
Rob Scott
d985438772
Updating EndpointSlice controllers to support NodeName field
2020-11-11 16:50:36 -08:00
Rob Scott
e9573eef4c
Adding EndpointSliceNodeName feature gate
2020-11-11 16:50:29 -08:00
Rob Scott
9613f79add
Adding NodeName to EndpointSlice API, deprecation updates
...
In addition to adding NodeName, this notes that the topology field will
be deprecated soon. It also removes the IP address type that was
deprecated in Kubernetes 1.17 and intended to be removed in 1.20.
2020-11-11 16:50:23 -08:00
Alay Patel
15089aab94
update bazel
2020-11-11 19:47:11 -05:00
Alay Patel
d6ca5b8d14
handle the case for slow cronjob lister, add unit tests
2020-11-11 18:48:57 -05:00
Alay Patel
41c82e69ed
convert to stardard lister, use []*batchv1.Job instead of []batchv1.Job
2020-11-11 18:48:57 -05:00
Kubernetes Prow Robot
667d1c2c3f
Merge pull request #93370 from alaypatel07/add-new-cronjob-controller
...
Add cronjob controller v2
2020-11-11 15:42:50 -08:00
Haowei Cai
9bf7fcfc76
actually retry if we failed to reconcile some objects
...
retry RBAC initialization for up to 30 seconds, kill server on failure
2020-11-11 15:39:12 -08:00
Kubernetes Prow Robot
8be0a29ce0
Merge pull request #95747 from SataQiu/fix-job-default-20201021
...
Fix the validation logic for Job/CronJob RestartPolicy field
2020-11-11 14:35:00 -08:00
Kubernetes Prow Robot
f5abe26a19
Merge pull request #93243 from AlexeyPerevalov/NUMAidAndCPUidsInPodResources
...
Implement TopologyInfo and cpu_ids in podresources interface
2020-11-11 12:35:11 -08:00
Christopher M. Luciano
a036577e2c
proxy: Restructure config validation tests to check errors
...
The tests for most functions have also been revised to check the errors
explicitly upon validating. This will properly catch occasions
where we should be returning multiple errors if more error occurs or
if just one block is failing.
Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com >
2020-11-11 14:38:11 -05:00
Sergey Kanzhelev
06da0e5e74
GA of RuntimeClass feature gate and API
2020-11-11 19:22:32 +00:00
Chelsey Chen
31f7b5f606
Set priority of Event v1 higher than v1beta1
2020-11-11 10:47:20 -05:00
Kubernetes Prow Robot
c3769096c6
Merge pull request #96439 from Huang-Wei/sched-policy-defaultpreemption
...
Fix a bug that DefaultPreemption plugin is disabled when using scheduler policy
2020-11-11 07:44:18 -08:00
Mauricio Vásquez
119040ac77
volume: Add unit test for SetVolumeOwnership owners
...
Former TestSetVolumeOwnership only checks the mode of the files. This commit
adds a new TestSetVolumeOwnershipOwner that checks the ownership of the files.
2020-11-11 09:23:16 -05:00
Mauricio Vásquez
7d293e3efa
volume: Change owner of symlinks too
...
This commit uses Lchown instead of Chown to change the owner of symlinks too.
It doesn't change any behaviour. However, it could avoid some confusions as the
symlinks are updated to the correct owner too.
2020-11-11 08:32:46 -05: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
Kubernetes Prow Robot
f5e4a73266
Merge pull request #96196 from roycaihw/move-lease-controller
...
Move lease controller to k8s.io/component-helpers/apimachinery
2020-11-11 01:50:28 -08:00
Kubernetes Prow Robot
423f8731ef
Merge pull request #95719 from tsmetana/add-pv_collector-provisioner-metric
...
PV Controller: Add plugin name and volume mode to PV metrics
2020-11-11 01:49:49 -08: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
Patrik Cyvoct
d29665cc17
Revert "Merge pull request #92312 from Sh4d1/kep_1860"
...
This reverts commit ef16faf409 , reversing
changes made to 2343b8a68b .
2020-11-11 10:26:53 +01:00
SataQiu
961d062e9a
fix the validation logic for Job/CronJob RestartPolicy field
2020-11-11 14:16:36 +08:00
Kubernetes Prow Robot
0923b9abce
Merge pull request #95206 from misterikkit/quobyte-update
...
storage: Use FilteredDialContext in quobyte client
2020-11-10 21:44:30 -08:00