Commit Graph

128685 Commits

Author SHA1 Message Date
Dan Winship
b62503dd66 Remove a dead error check in winkernel
The cmd/kube-proxy code never passes nil for the node IP any more.
2025-03-07 10:43:58 -05:00
Dan Winship
f001b3916d Remove a stale comment in metaproxier.go
(NodeHandler was implemented in metaProxier a long time ago.)
2025-03-07 10:43:56 -05:00
Dan Winship
303593cafe Fix some pkg/proxy comments
Remove a bunch of comments that are either inaccurate ("the proxier
can only be tested by e2e tests") or weirdly overspecific about
obvious details ("the proxier will not exit if an iptables call
fails").
2025-03-07 10:43:55 -05:00
Dan Winship
b5e9a8262e Remove exec arg from utilipset.New
Historically it took an exec argument so you could pass a FakeExec to
mock its behavior in unit tests, but it has a fake implementation now
that is much more useful for unit tests than trying to use the real
implementation with a fake exec. (The unit tests still use fake execs,
but they don't need to use a public constructor.) So remove the exec
args from the public constructors.
2025-03-07 10:43:52 -05:00
Dan Winship
36f5820ad1 Remove some unused proxy args/fields
Remove the utilexec.Interface args from the iptables/ipvs constructors
(which have been unused since the conntrack cleanup code was ported to
netlink).

Remove the EventRecorder fields from the iptables/ipvs Proxiers, which
have been unused since we removed the port-opener code in 2022.

Remove the strictARP field from the ipvs Proxier, which has apparently
always been unused (strictARP is only looked at at construct time).
2025-03-07 10:43:45 -05:00
Dan Winship
13f0449e4c Fix up kube-proxy import ordering/organization. 2025-03-07 10:43:43 -05:00
Kubernetes Prow Robot
ea49618a74
Merge pull request #130489 from p0lyn0mial/upstream-fake-client-pass-opts
client-gen/fake: pass ListOptions to Watch method
2025-03-07 07:25:46 -08:00
Kubernetes Prow Robot
4468565250
Merge pull request #130470 from p0lyn0mial/upstream-fake-client-opts-watch
client-go/gentype/fake: sets opts.Watch true
2025-03-07 05:21:52 -08:00
Kubernetes Prow Robot
74cb75c884
Merge pull request #130396 from bart0sh/PR173-e2e_node-fix-getting-pod-logs
e2e_node: remote: fix getting pod logs
2025-03-07 05:21:45 -08:00
Kubernetes Prow Robot
cf07a65c43
Merge pull request #130612 from carlory/fix-sleep-infinity-on-windows
Fix non-portable use of "sleep infinity"
2025-03-07 04:15:52 -08:00
Kubernetes Prow Robot
43560c620a
Merge pull request #130522 from googs1025/feature/integration_filter_TaintToleration
chore(scheduler): add filter integration tests for missing part plugins: TaintToleration plugin
2025-03-07 04:15:45 -08:00
Maciej Zimnoch
e1d3aaf861
Return correct error upon websocket message read failure
This fixes variable passed as error reason upon websocker message read failure.
Previously a wrong variable was passed resulting in returning failure with nil error reason.
2025-03-07 12:53:50 +01:00
Lukasz Szaszkiewicz
325a54f73d ./hack/update-codegen.sh 2025-03-07 12:43:44 +01:00
Lukasz Szaszkiewicz
d6ea91cf93 client-gen/fake: pass ListOptions to Watch method 2025-03-07 12:43:39 +01:00
Kubernetes Prow Robot
1c9840c58e
Merge pull request #130243 from rata/revert-userns-kernel-check
Revert userns kernel check
2025-03-07 02:35:44 -08:00
Kubernetes Prow Robot
c7088e6437
Merge pull request #130260 from Bowser1704/fix/skip-best-effort-pods
fix(scheduler): skip best-effort pods in BalancedAllocation PreScore
2025-03-07 01:11:45 -08:00
Patrick Ohly
dfb8ab6521 DRA scheduler: fail in PreFilter when DRAPrioritizedList is disabled and used
This was previously caught during Filter by the allocator check. Doing it
sooner avoids wasting resources on a pod which ultimately cannot get scheduled.

While at it, be a bit more clear about which feature is disabled. The user
might not know that.
2025-03-07 08:45:32 +01:00
carlory
0a32e7d6e7 make sure that container is running when execute kubelet exec command
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-07 14:42:21 +08:00
Hongqi Yu
d76f40d2f3 fix(scheduler): skip best-effort pods in BalancedAllocation PreScore
- Refactored `PreScore` method in `balanced_allocation.go` to skip
  best-effort pods.
- Updated unit tests in `balanced_allocation_test.go` to check for
  the new status codes.
2025-03-07 13:13:02 +08:00
Kubernetes Prow Robot
672f57e2a4
Merge pull request #129909 from YamasouA/refactor/scheduler_perf
Refactor scheduler_perf runWorkload
2025-03-06 21:01:52 -08:00
Kubernetes Prow Robot
9d45ea8b9d
Merge pull request #128586 from mortent/DRAPrioritizedList
Prioritized Alternatives in Device Requests
2025-03-06 21:01:44 -08:00
Kubernetes Prow Robot
9625c4a2d4
Merge pull request #130627 from jpbetz/declarative-validation-cleanups
Add all extra_pkgs needed by main API types to validation-gen
2025-03-06 19:55:44 -08:00
googs1025
032b05114c chore(scheduler): add filter integration tests for missing part plugins: TaintToleration plugin 2025-03-07 09:33:49 +08:00
Joe Betz
9765fe4abb Add all extra_pkgs needed by main API types to validation-gen 2025-03-06 19:45:17 -05:00
Natasha Sarkar
0140842add update testdata for roundtrip and client tests 2025-03-06 22:31:15 +00:00
Natasha Sarkar
701b76f10d pod gc controller sets status.observedGeneration upon pod failure 2025-03-06 22:31:15 +00:00
Natasha Sarkar
40e7d88f02 Kubelet sets pod.status.observedGeneration behind FG 2025-03-06 22:31:04 +00:00
Benjamin Elder
6f1f7beff3 sort client-gen output 2025-03-06 14:15:15 -08:00
Kubernetes Prow Robot
3a812ec464
Merge pull request #130617 from cici37/updateFG
Update status before returning err
2025-03-06 14:10:01 -08:00
Kubernetes Prow Robot
25104fabcb
Merge pull request #130604 from tallclair/allocated-status
Always report pod status resources consistent with the current pod sync
2025-03-06 14:09:54 -08:00
Mark Rossetti
20230f2251
Fixing unit tests in k8s.io/kubernetes/pkg/volume/util/subpath on Windows 2025-03-06 13:05:48 -08:00
Natasha Sarkar
bb3ba9d073 Preserve old observedGen if incoming attempts to clear it 2025-03-06 20:14:46 +00:00
Natasha Sarkar
12d34624ba add observedGeneration to pod's dropDisabledStatusFields 2025-03-06 20:14:32 +00:00
Natasha Sarkar
6edd921746 run 'make update' 2025-03-06 20:08:06 +00:00
Natasha Sarkar
eab9197d1a Add observedGeneration and validation to pod status and conditions 2025-03-06 20:08:06 +00:00
Kubernetes Prow Robot
d3548f487d
Merge pull request #130618 from natasha41575/dropDisabledPodStatusUpdates
call dropDisabledPodFields from pod status strategy
2025-03-06 11:53:44 -08:00
Cici Huang
6645022d8b Update status before returning err 2025-03-06 10:54:45 -08:00
Kubernetes Prow Robot
949abfc34f
Merge pull request #130453 from BenTheElder/gotoolchain-kms
kms-e2e: use setup_env / respect GOTOOLCHAIN / use kube-cross image
2025-03-06 10:27:44 -08:00
Natasha Sarkar
abdc760ba5 call dropDisabledPodFields from pod status strategy 2025-03-06 17:05:36 +00:00
Kubernetes Prow Robot
45fa12f8af
Merge pull request #130616 from gnufied/fix-root-unit-test-ownership-perms
Fix unit tests for volume ownership
2025-03-06 08:47:44 -08:00
Charles Wong
46c09d3017 add more uncore test cases 2025-03-06 10:02:06 -06:00
Francesco Romani
919e8a62e9 uncore: more testcases
add multi-uncore real topology and use it by starting the policy allocation tests

Signed-off-by: Francesco Romani <fromani@redhat.com>
2025-03-06 10:02:06 -06:00
Hemant Kumar
5a7697dfe0 Fix unit tests for volume ownership 2025-03-06 10:37:56 -05:00
Kubernetes Prow Robot
0f7becbc44
Merge pull request #130537 from saintube/scheduler-expose-nodeinfo-in-score
Expose NodeInfo to the ScorePlugin
2025-03-06 06:53:55 -08:00
Kubernetes Prow Robot
07e65dac2d
Merge pull request #130417 from serathius/watchcache-compact
Separate compactWatchCache from compactStore
2025-03-06 06:53:45 -08:00
Kubernetes Prow Robot
7c78041218
Merge pull request #130416 from macsko/add_backoff_expiration
Store Pod backoff expiration time in QueuedPodInfo
2025-03-06 05:09:45 -08:00
Marek Siarkowicz
15cb82b3b3 Separate compactWatchCache from increaseRV 2025-03-06 13:30:37 +01:00
Maciej Skoczeń
2fc3cd90b1 Store pod backoff expiration time in QueuedPodInfo 2025-03-06 10:45:38 +00:00
Henry Wu
5917343e45 Parallelize lease candidate ping 2025-03-06 01:02:45 -08:00
Kubernetes Prow Robot
c30b1eb09b
Merge pull request #130589 from serathius/watchcache-opts
Pass storage.ListOptions to WaitUntilFreshAndList
2025-03-06 00:58:00 -08:00