Commit Graph

49698 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
26e2cc5299 Merge pull request #119923 from cvvz/fix-119921
fix: Mount point may become local without calling `NodePublishVolume` after node rebooting
2023-12-13 21:25:51 +01:00
Kubernetes Prow Robot
3c1356bc9b Merge pull request #119764 from linxiulei/reservedTypo
Fix error message for invalid resource reservation
2023-12-13 21:25:42 +01:00
Kubernetes Prow Robot
74afd1a06f Merge pull request #119539 from HirazawaUi/remove-not-register-event-code
remove unregistered event code
2023-12-13 21:25:33 +01:00
Kubernetes Prow Robot
510b49a406 Merge pull request #118431 from testwill/plugin_slice
chore: loop optimization
2023-12-13 21:25:24 +01:00
Kubernetes Prow Robot
c5473f1710 Merge pull request #117667 from carlory/fix-009
Remove ability to re-enable serving deprecated storage APIs
2023-12-13 21:25:15 +01:00
Kubernetes Prow Robot
d2fc690421 Merge pull request #116209 from haoruan/feature-csidriver-fields-mutable
Allow FSGroupPolicy and PodInfoOnMount to be mutable in CSIDriver.Spec
2023-12-13 21:24:57 +01:00
Kubernetes Prow Robot
c02f5bc0f8 Merge pull request #115768 from AxeZhan/volumebinding
feature(volumebinding): Implement PreScore for VolumeBinding plugin to skip score
2023-12-13 21:24:43 +01:00
Daniel Henkel
2e388dd7e9 keep existing PDB conditions when updating status
When the disruption controller updates the PDB status, it removes all conditions from the new status object and then re-adds the sufficient pods condition. Unfortunately, this behavior removes conditions set by other controllers, leading to multiple consecutive updates.
Therefore, this commit ensures that conditions are preserved during updates.
2023-12-13 19:57:42 +01:00
Kensei Nakada
3b8f25dfdd fix: disable SchedulerQueueingHints feature flag by default 2023-12-13 04:16:43 +00:00
Kensei Nakada
7aeecc42a4 Revert "scheduler/NodeUnschedulable: reduce pod scheduling latency"
This reverts commit 28dbe8a34d.
2023-12-13 03:18:02 +00:00
Kensei Nakada
329b873e4e Revert "scheduler/nodeaffinity: reduce pod scheduling latency"
This reverts commit 1d88bf9789.
2023-12-13 02:57:45 +00:00
carlory
9e1adced5d noderesourcefit: scheduler queueing hints
Co-authored-by: Kensei Nakada <handbomusic@gmail.com>
2023-12-13 10:02:52 +08:00
Patrick Ohly
324816a883 dra: enable adding ReservedFor entries through strategic-merge-patch
When moving the reservation of a claim for a pod into the PreBind phase in a
future commit, multiple different update attempts will be executed
concurrently. We want an attempt to succeed if and only if adding the entry
passes validation. Without patch strategy and key, strategic-merge-patch
replaces the entire ReservedFor instead of adding new entries.

Server-side-apply cannot be used because each attempt may start with a stale
ResourceClaim (thus cannot send the entire ReservedFor) and SSA doesn't support
merging when using the same manager string. Using different managers (one for
each entry) would work, but sounds like a bad hack.
2023-12-12 14:05:34 +01:00
孔令飞
917027b42e fix incorrect function comment
Change-Id: I7d5e908f979026faa467fdd77049b6aa3087fd7c
2023-12-12 17:38:03 +08:00
Hemant Kumar
56dd5ab10f Add tests for checking of uncertain device paths 2023-12-11 17:15:16 -05:00
Michal Wozniak
34bc590418 Add unit test for Job Controller for panic when PodFailurePolicy is used on 1.28 2023-12-11 11:08:46 +01:00
Arda Güçlü
7897709ed0 Add timezone column in cronjob get command 2023-12-08 10:06:39 +03:00
Hemant Kumar
ed0facacfa Fix device uncertain errors on reboot 2023-12-06 22:19:14 -05:00
olderTaoist
78b4ab11d5 also report scheduling_algorithm_duration_seconds metric when the pods is unschedulable 2023-12-06 19:17:03 +08:00
AxeZhan
210ed2ebbd add preScore for volumeBinding 2023-12-06 15:35:35 +08:00
Kevin Hannon
4e5321c92e add beta comment for pod replacement policy 2023-12-05 13:17:24 -05:00
Ziqi Zhao
e92501b8fc optimize the comment
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-12-05 22:46:27 +08:00
Ziqi Zhao
51495bb4c5 optimize the unit test
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-12-05 08:02:03 +08:00
ii2day
4b1408c2e7 Fix typos: update registerCidrsetMetrics to registerCIDRSetMetrics
Signed-off-by: ii2day <ji.li@daocloud.io>
2023-12-04 10:09:52 +08:00
Ziqi Zhao
69c40a3396 fix lints
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-12-02 19:37:49 +08:00
Ziqi Zhao
24c4d6f7c9 add unit test for kubelet trace
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-12-02 17:09:01 +08:00
Patrick Ohly
d11511b1e8 kubelet: enhance context support
27a68aee3a introduced context support for events. Creating an event
broadcaster with context makes tests more resilient against leaking goroutines
when that context gets canceled at the end of a test and enables per-test
output via ktesting.

To use this in kubelet, a more thorough code update is needed. For now,
context.TODO serves as a reminder that this is necessary.
2023-12-01 10:15:01 +01:00
bzsuni
fa31b4d30d Remove GA featuregate about KubeletPodResources in 1.30
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-12-01 15:08:12 +08:00
ii2day
eb60b31e6e Remove GA featuregate about KubeletPodResourcesGetAllocatable in 1.30
Signed-off-by: ii2day <ji.li@daocloud.io>
2023-12-01 15:07:42 +08:00
bzsuni
a20093aa07 Remove GA featuregate about IPTablesOwnershipCleanup in 1.30
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-12-01 15:03:51 +08:00
tao.yang
965b3634ff Remove GA featuregate about remove_MinimizeIPTablesRestore in 1.30
Signed-off-by: tao.yang <tao.yang@daocloud.io>
2023-12-01 15:02:08 +08:00
wen.rui
84c0ed2642 Add SidecarContainers feature beta version 2023-12-01 14:57:29 +08:00
tao.yang
e13dca64cf Remove GA featuregate about ProxyTerminatingEndpoints in 1.30
Signed-off-by: tao.yang <tao.yang@daocloud.io>
2023-12-01 14:47:54 +08:00
kerthcet
b1ad834dfb No need to calculate ResourceEphemeralStorage additionally
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-12-01 14:25:30 +08:00
ahutsunshine
d8bd150784 support pod namespace indexer
fix comments

optimize code

small optimization for the namespace scope check
2023-11-30 18:39:09 +08:00
npolshakova
a82ee6d416 fix error check 2023-11-29 11:55:30 -05:00
Dan Winship
8acf185791 Use a generic Set for utiliptables.GetChainsFromTable 2023-11-29 11:12:27 -05:00
Dan Winship
7cedc3d741 Simplify creation/tracking of chains
In the original version of "MinimizeIPTablesRestore", we skipped the
bottom half of the sync loop when we weren't re-syncing a service, so
certain things that couldn't be skipped had to be done in the top
half. But the code was later changed to always run through the whole
loop body (just not necessarily writing out rules in the bottom half),
so we can reorganize things now to put some related bits of code back
together.

(In particular, this also resolves the fact that we were accidentally
adding the endpoint chains to activeNATChains twice.)

Also change activeNATChains to be a proper generic Set type.
2023-11-29 11:12:20 -05:00
caohe
1f5738df84 fix(scheduler): fix incorrect loop logic in MultiPoint to avoid a plugin being loaded multiple times
Signed-off-by: caohe <caohe9603@gmail.com>
2023-11-29 20:14:18 +08:00
Ziqi Zhao
f035fea63a remove unnecessary code
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-11-29 09:59:53 +08:00
Aleksandra Malinowska
3df00d1bdd Only run Prioritize() for extenders with prioritizeVerb configured 2023-11-28 17:13:13 +01:00
Aleksandra Malinowska
56dcde8627 Add unit tests for no score plugin scenario 2023-11-28 17:13:13 +01:00
Ziqi Zhao
6d92b330e3 use ctx withoutcancel
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-11-28 23:43:33 +08:00
carlory
5e7c4c245b remove the deprecated in-tree vsphere volume's code 2023-11-28 21:47:35 +08:00
bzsuni
a6e48ef978 Remove GA featuregate about ExperimentalHostUserNamespaceDefaultingGate in 1.30
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2023-11-28 20:23:07 +08:00
Ziqi Zhao
90fc108f6d fix kubelet trace broke in 1.28
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-11-28 20:02:23 +08:00
Claudiu Belu
f7aca72155 unittests: Fixes unit tests for Windows (part 8)
Currently, there are some unit tests that are failing on Windows due to
various reasons:

- flexvolume coverts its paths to absolute paths, which means that on Windows the C:\ prefix
  will be added. This becomes an issue when prober.fs.Walk is called, which will join 2 absolute
  paths, both containing the C:\ prefix, resulting in an incorrect path.
2023-11-28 11:14:00 +00:00
Aleksandra Malinowska
feb23ec581 Fix existing unit test (add no op scoring plugin) 2023-11-28 10:42:21 +01:00
Aleksandra Malinowska
199dc03bdd Don't evaluate extra nodes if there's no score plugin defined 2023-11-28 10:39:49 +01:00
SataQiu
c86189d1de clean up unused parameters for volume zone unit test 2023-11-28 11:37:41 +08:00