Commit Graph

5525 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
12dc894f80 Merge pull request #127322 from vrutkovs/tracing-set-audit-id
tracing: set audit-id on incoming requests
2025-07-13 17:58:23 -07:00
Kubernetes Prow Robot
5209b41328 Merge pull request #132889 from macsko/disable_schedulerasyncpreemption_feature_correctly_in_schedulerintegration_tests
Disable SchedulerAsyncPreemption feature correctly in integration tests
2025-07-13 13:18:22 -07:00
Kubernetes Prow Robot
20114b2090 Merge pull request #132878 from ylink-lfs/chore/int32ptr_removal
chore: replace int32Ptr usage with ptr.To
2025-07-12 18:18:21 -07:00
ylink-lfs
e0f9914ef7 chore: replace int32Ptr usage with ptr.To 2025-07-13 08:12:55 +08:00
Kubernetes Prow Robot
3fc199b059 Merge pull request #132905 from ylink-lfs/chore/intptr_removal
chore: intPtr utility removal with ptr.To
2025-07-12 16:31:43 -07:00
ylink-lfs
5971802fdd chore: intPtr removal with ptr.To 2025-07-12 16:44:39 +08:00
Maciej Skoczeń
9df4c35a60 Disable SchedulerAsyncPreemption feature correctly in integration tests 2025-07-11 12:28:50 +00:00
Kubernetes Prow Robot
2bdcad7419 Merge pull request #132803 from aramase/aramase/f/token_request_uid_check
Make kubelet token cache UID-aware to prevent stale tokens after service account recreation
2025-07-10 22:25:27 -07:00
Anish Ramasekar
45dfb46448 Add TokenRequestServiceAccountUIDValidation feature gate with UID validation
This change introduces the TokenRequestServiceAccountUIDValidation feature
gate and implements feature-gated service account UID validation for the
TokenRequest API. When enabled, the API validates that the service account
UID in token requests matches the actual service account UID, preventing
token requests for recreated service accounts with the same name but
different UIDs.

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-07-10 23:20:23 -05:00
Kubernetes Prow Robot
6e716b2049 Merge pull request #132619 from saza-ku/report-scheduler-perf-fail
scheduler_perf: add logs to report the failure of measuring SchedulingThroughput
2025-07-10 01:15:28 -07:00
Jefftree
adb71d041d Forcefully expire lease in integration test to fix flake 2025-07-08 17:51:59 +00:00
Kubernetes Prow Robot
9fbd2dae14 Merge pull request #132339 from adrianmoisey/relaxed-validation-for-services-names
KEP-5311 Relaxed validation for Services names
2025-07-08 09:03:26 -07:00
PatrickLaabs
cfd65c5f74 chore: replacement of helper functions to ptr packge 2025-07-07 21:28:54 +02:00
@saza-ku
277c665e8b use early return 2025-07-07 17:30:52 +09:00
Saza
81be9065d1 improve the log message to clarify what users should do
Co-authored-by: Kensei Nakada <handbomusic@gmail.com>
2025-07-07 17:17:11 +09:00
PatrickLaabs
1802c55652 chore: depr. pointer pkg replacement for test integration 2025-07-06 22:02:04 +02:00
Kubernetes Prow Robot
f1190f1d35 Merge pull request #132716 from ylink-lfs/chore/lb_test_utilpointer_removal
chore: remove utilpointer usage in test/integration/service/loadbancer_test.go
2025-07-04 19:13:24 -07:00
Kubernetes Prow Robot
0fe23942fd Merge pull request #128653 from saschagrunert/cri-gogo
Remove gogo from proto bindings (part 1: CRI)
2025-07-04 07:21:25 -07:00
Sascha Grunert
b464bbeb8f Remove gogo-protobuf from CRI
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2025-07-04 08:55:57 +02:00
ylink-lfs
ce7b3694f7 chore: remove utilpointer usage in package test/integration/service/loadbancer_test.go 2025-07-04 12:54:52 +08:00
Patrick Ohly
2e966244ed DRA resourceslice controller: fix recreation after quick delete
If a ResourceSlice got published by the ResourceSlice controller in a DRA
driver and then that ResourceSlice got deleted quickly (within one minute, the
mutation cache TTL) by someone (for example, the kubelet because of a restart),
then the controller did not react properly to the deletion unless some other
event triggered the syncing of the pool.

Found while adding upgrade/downgrade tests with a driver which keeps running
across the upgrade/downgrade.

The exact sequence leading to this were:
- controller adds ResourceSlice, schedules a sync for one minute in the future (the TTL)
- someone else deletes the ResourceSlice
- add and delete events schedule another sync 30 seconds in the future (the delay),
  *overwriting* the other scheduled sync
- sync runs once, finds deleted slices in the mutation cache,
  does not re-create them, and also does not run again

One possible fix would be to set a resync period. But then work is done
periodically, whether it's necessary or not.

Another fix is to ensure that the TTL is shorter than the delay. Then when a
sync occurs, all locally stored additional slices are expired. But that renders
the whole storing of recently created slices in the cache pointless.

So the fix used here is to keep track of when another sync has to run because
of added slices. At the end of each sync, the next sync gets scheduled if (and
only if) needed, until eventually syncing can stop.
2025-07-03 08:20:39 +02:00
Adrian Moisey
97c1974e9c Add integration test for RelaxedServiceNameValidation.
To test enabling and disabling of RelaxedServiceNameValidation feature
gate
2025-07-02 12:57:32 +02:00
saza-ku
a17b0d7f66 gofmt 2025-07-02 12:39:38 +09:00
Kubernetes Prow Robot
d3296eac97 Merge pull request #132614 from mimowo/fix-job-controller-edge
Fix validation for Job with suspend=true,completions=0 to set Complete condition
2025-07-01 12:43:24 -07:00
Kubernetes Prow Robot
f885352d0b Merge pull request #132623 from utam0k/scheduler-perf-emulate-versino
scheduler_perf: Fix version emulation for empty featureGates map
2025-07-01 09:21:52 -07:00
Kubernetes Prow Robot
2ee568260f Merge pull request #132087 from ania-borowiec/move_code_and_status
Moving Scheduler interfaces to staging: Move Code and Status from pkg/scheduler/framework to k8s.io/kube-scheduler/framework
2025-07-01 09:21:38 -07:00
Kubernetes Prow Robot
a9841ca3b3 Merge pull request #131790 from chengjoey/fix/sts-validation
fix pod template spec validation missing in sts
2025-07-01 09:21:31 -07:00
Saza
95b1151d2a use format specifier
Co-authored-by: Toru Komatsu <k0ma@utam0k.jp>
2025-07-01 23:57:49 +09:00
Kubernetes Prow Robot
201325e869 Merge pull request #132433 from michaelasp/configurablecle
feat: make CLE timers configurable
2025-06-30 12:08:31 -07:00
utam0k
a8068e27b1 scheduler_perf: Fix version emulation for empty featureGates map
Signed-off-by: utam0k <k0ma@utam0k.jp>
2025-06-30 21:31:21 +09:00
Michal Wozniak
6e5c99dd05 Review remarks 2025-06-30 13:18:53 +02:00
Ania Borowiec
ee8c265d35 Move Code and Status from pkg/scheduler/framework to k8s.io/kube-scheduler/framework 2025-06-30 10:06:22 +00:00
@saza-ku
08dd9c47b3 improve the log message to clarify the cause of the failure 2025-06-30 18:27:55 +09:00
@saza-ku
a6e2cd4e8d scheduler_perf: add logs to report the failure of measuring SchedulingThroughput 2025-06-30 17:52:24 +09:00
Michal Wozniak
ca314b9f56 Fix validation for Job with suspend=true,completions=0 to set Complete condition 2025-06-30 07:58:04 +02:00
Kubernetes Prow Robot
a57091ce85 Merge pull request #132555 from utam0k/scheduler-perf-emulate-versino
scheduler_perf: Set version emulation only when QueueingHints is disabled
2025-06-29 05:52:29 -07:00
utam0k
f437aa4aa6 scheduler_perf: Set version emulation only when QueueingHints is disabled
Signed-off-by: utam0k <k0ma@utam0k.jp>
2025-06-28 11:00:23 +09:00
joey
dfd34a5b18 fix pod template spec validation missing in sts
Signed-off-by: joey <zchengjoey@gmail.com>
2025-06-27 16:30:51 +08:00
Ania Borowiec
00d3750503 Move ClusterEvent type to staging repo, leaving some functions (that contain logic internal to scheduler) in kubernetes/kubernetes (#132190)
* Move ClusterEvent type to staging repo, leaving some functions (that contain logic internal to scheduler) in kubernetes/kubernetes

apply review comment and fix linter warning

* update-vendor.sh

* update doc comments

* run update-vendor.sh
2025-06-26 08:06:29 -07:00
Kubernetes Prow Robot
28e4f3f6a3 Merge pull request #131350 from pohly/etcd-output
etcd output interception
2025-06-26 04:46:29 -07:00
Michael Aspinwall
1a59c250ea feat: make CLE timers configurable 2025-06-25 16:38:50 +00:00
Ben Luddy
190c8c7abc Use per-policy marker names for VAP integration tests.
Writes to policy resources don't instantaneously take effect in admission. ValidatingAdmissionPolicy
integration tests determine that the policies under test have taken effect by adding a sentinel
policy rule and polling until that rule is applied to a request.

If the marker resource names are the same for each test case in a series of test cases, then
observing a policy's effect on a marker request only indicates that _any_ test policy is in effect,
but it's not necessarily the policy the current test case is waiting for. For example:

1. Test 1 creates a policy and binding.

2. The policy and binding are observed by the admission plugin and take effect.

3. Test 1 observes that a policy is in effect via marker requests.

4. Test 1 exercises the behavior under test and successfully deletes the policy and binding it
created.

5. Test 2 creates a policy and binding.

6. Test 2 observes that a policy is in effect via marker requests, but the policy in effect is still
the one created by Test 1.

7. Test 2 exercises the behavior under test, which fails because it was evaluated against Test 1's
policy.

Generating a per-policy name for the marker resource in each test resolves the timing issue. In the
example, step (6) will not proceed until the admission plugin has observed the policy and binding
created in (5).
2025-06-25 11:17:20 -04:00
Lukasz Szaszkiewicz
b8b3984874 client-go/reflector: stop exposing UseWatchList (#132453)
* client-go/reflector: stop exposing UseWatchList

* apiserver/cacher: stop setting reflector.UseWatchList

* test/integration/watchlist: fix TestReflectorWatchListFallback
2025-06-25 04:04:29 -07:00
Kubernetes Prow Robot
49c20d6f44 Merge pull request #132173 from dejanzele/feat/promote-job-pod-replacement-policy-ga
KEP-3939: Job Pod Replacement Policy; promote to GA
2025-06-24 07:04:28 -07:00
Kubernetes Prow Robot
0017db180b Merge pull request #130052 from utam0k/qhint-enable-plugins
sched: Apply EnablePlugins to CoreResourceEnqueueTestCases
2025-06-23 17:00:37 -07:00
Kubernetes Prow Robot
5e33c00e37 Merge pull request #132336 from dashpole/fix_apiserver_tracing_race
Fix APIServerTracing test data race
2025-06-22 20:26:56 -07:00
Kubernetes Prow Robot
b569406b79 Merge pull request #129438 from pacoxu/apiserver-probe-etcd
add etcd server overrides to etcd probe factory for healthz and readyz
2025-06-19 11:30:52 -07:00
Paco Xu
891e7fec6e add seperate health check/probe for multi etcd override servers
- grouping health checks for exclusion purposes & add exclude integration test

Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2025-06-17 09:30:41 +08:00
David Ashpole
f4a4586255 fix APIServerTracing test data race 2025-06-16 17:36:23 +00:00
Dejan Zele Pejchev
bccc9fe470 KEP-3939: Job Pod Replacement Policy; promote to GA
Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
2025-06-16 16:26:03 +02:00