Commit Graph

136626 Commits

Author SHA1 Message Date
Hamza
67deec3bfa DRA: include node name in timeout error and rework FilterTimeout test setup 2026-03-18 04:33:24 +01:00
Hamza
77403e5940 DRA: fix FilterTimeout/enabled test to clear worker-0 devices 2026-03-17 12:53:22 +01:00
Hamza
3ea232f220 DRA: adapt FilterTimeout test after upstream dra_test.go split 2026-03-17 11:29:37 +01:00
Hamza
0680960e5e Return Error from DRA filter on timeout to enable automatic retry 2026-03-11 02:20:30 +01:00
Kubernetes Prow Robot
f98d927105 Merge pull request #137663 from pohly/dra-integration-split
DRA: improve integration testing
2026-03-17 15:29:38 +05:30
Kubernetes Prow Robot
57b1e14be1 Merge pull request #137055 from wongchar/align-uncore-stable
promote align-uncore-cache to stable
2026-03-17 13:33:37 +05:30
Patrick Ohly
4e33d5257b DRA integration: split source code
dra.go grew organically over time. Some tests where added there, others in
separate files. Separate files is better because it's easier to find tests and
because it avoids merge conflicts. To make the approach consistent, all code
that isn't related to how tests are run gets moved out of dra.go.
2026-03-17 07:57:07 +01:00
Patrick Ohly
180434e6b4 DRA integration: split into different packages
This does not change how tests are written registered, only which package
executes which tests.

Here's a comparison after cleaning compile and test caches. Wall-clock time is
actually lower with different packages because different packages can be tested
in parallel. The same tests run as before.

Before:

    PASS test/integration/dra.TestDRA/GA-opt-out/PrioritizedList (0.02s)
    PASS test/integration/dra.TestDRA/GA-opt-out (3.37s)
    PASS test/integration/dra.TestDRA/v1beta1/PublishResourceSlices/create (17.05s)
    PASS test/integration/dra.TestDRA/v1beta1/PublishResourceSlices (17.06s)
    PASS test/integration/dra.TestDRA/v1beta1 (1.63s)
    PASS test/integration/dra.TestDRA/v1beta2/PublishResourceSlices/create (17.05s)
    PASS test/integration/dra.TestDRA/v1beta2/PublishResourceSlices (17.05s)
    PASS test/integration/dra.TestDRA/v1beta2 (2.69s)
    PASS test/integration/dra.TestDRA/all/ControllerManagerMetrics (0.89s)
    PASS test/integration/dra.TestDRA/all/DeviceBindingConditions/TimeoutReached (6.36s)
    PASS test/integration/dra.TestDRA/all/DeviceBindingConditions/TimeoutRecover (7.35s)
    PASS test/integration/dra.TestDRA/all/DeviceBindingConditions/FailureRemove (7.20s)
    PASS test/integration/dra.TestDRA/all/DeviceBindingConditions/FailureTaints (7.20s)
    PASS test/integration/dra.TestDRA/all/DeviceBindingConditions/BasicFlow (12.23s)
    PASS test/integration/dra.TestDRA/all/DeviceBindingConditions (13.71s)
    PASS test/integration/dra.TestDRA/all/PartitionableDevices/PerDeviceNodeSelection (0.30s)
    PASS test/integration/dra.TestDRA/all/PartitionableDevices/MultiHostDevice (0.31s)
    PASS test/integration/dra.TestDRA/all/PartitionableDevices (0.61s)
    PASS test/integration/dra.TestDRA/all/MaxResourceSlice/basic (0.05s)
    PASS test/integration/dra.TestDRA/all/MaxResourceSlice/with-taints-and-consumes-counters (0.07s)
    PASS test/integration/dra.TestDRA/all/MaxResourceSlice/with-shared-counters (0.01s)
    PASS test/integration/dra.TestDRA/all/MaxResourceSlice (0.12s)
    PASS test/integration/dra.TestDRA/all/EvictClusterWithV1alpha3Rule (35.26s)
    PASS test/integration/dra.TestDRA/all/EvictClusterWithV1beta2Rule (35.36s)
    PASS test/integration/dra.TestDRA/all/EvictClusterWithSlices (4.11s)
    PASS test/integration/dra.TestDRA/all/InvalidResourceSlices/only-invalid-for-one-node (1.06s)
    PASS test/integration/dra.TestDRA/all/InvalidResourceSlices/invalid-for-all-nodes (1.13s)
    PASS test/integration/dra.TestDRA/all/InvalidResourceSlices/invalid-one-node-and-valid-other (1.05s)
    PASS test/integration/dra.TestDRA/all/InvalidResourceSlices (3.36s)
    PASS test/integration/dra.TestDRA/all/FilterTimeout/disabled (2.15s)
    PASS test/integration/dra.TestDRA/all/FilterTimeout/enabled (4.17s)
    PASS test/integration/dra.TestDRA/all/FilterTimeout (6.37s)
    PASS test/integration/dra.TestDRA/all/ShareResourceClaimSequentially (140.87s)
    PASS test/integration/dra.TestDRA/all/AdminAccess (0.01s)
    PASS test/integration/dra.TestDRA/all/Convert (0.01s)
    PASS test/integration/dra.TestDRA/all/ResourceClaimDeviceStatus (0.02s)
    PASS test/integration/dra.TestDRA/all/PrioritizedListScoring/single-claim (1.03s)
    PASS test/integration/dra.TestDRA/all/PrioritizedList (1.24s)
    PASS test/integration/dra.TestDRA/all/ImplicitExtendedResource (1.24s)
    PASS test/integration/dra.TestDRA/all/ExplicitExtendedResource (1.24s)
    PASS test/integration/dra.TestDRA/all/PrioritizedListScoring/multi-claim (1.00s)
    PASS test/integration/dra.TestDRA/all/PrioritizedListScoring (2.26s)
    PASS test/integration/dra.TestDRA/all/UsesAllResources (2.91s)
    PASS test/integration/dra.TestDRA/all/PublishResourceSlices/create (17.04s)
    PASS test/integration/dra.TestDRA/all/PublishResourceSlices/recreate-after-delete (26.09s)
    PASS test/integration/dra.TestDRA/all/PublishResourceSlices/fix-after-update (7.04s)
    PASS test/integration/dra.TestDRA/all/PublishResourceSlices (50.17s)
    PASS test/integration/dra.TestDRA/all (255.62s)
    PASS test/integration/dra.TestDRA/disabled/APIDisabled (0.00s)
    PASS test/integration/dra.TestDRA/disabled/Pod (0.00s)
    PASS test/integration/dra.TestDRA/disabled (2.71s)
    PASS test/integration/dra.TestDRA/default/EvictClusterWithSlices (3.93s)
    PASS test/integration/dra.TestDRA/default/FilterTimeout/disabled (2.14s)
    PASS test/integration/dra.TestDRA/default/FilterTimeout/enabled (4.17s)
    PASS test/integration/dra.TestDRA/default/FilterTimeout (6.33s)
    PASS test/integration/dra.TestDRA/default/Pod (0.01s)
    PASS test/integration/dra.TestDRA/default/UsesAllResources (3.96s)
    PASS test/integration/dra.TestDRA/default (12.90s)
    PASS test/integration/dra.TestDRA/GA/PartitionableDevices (0.00s)
    PASS test/integration/dra.TestDRA/GA/DeviceBindingConditions/BasicFlow (0.00s)
    PASS test/integration/dra.TestDRA/GA/DeviceBindingConditions (0.00s)
    PASS test/integration/dra.TestDRA/GA/ResourceSliceController (44.67s)
    PASS test/integration/dra.TestDRA/GA/ShareResourceClaimSequentially (130.58s)
    PASS test/integration/dra.TestDRA/GA/AdminAccess (0.00s)
    PASS test/integration/dra.TestDRA/GA/Pod (0.00s)
    PASS test/integration/dra.TestDRA/GA/ResourceClaimDeviceStatus (0.00s)
    PASS test/integration/dra.TestDRA/GA/PrioritizedList (1.21s)
    PASS test/integration/dra.TestDRA/GA/ImplicitExtendedResource (1.21s)
    PASS test/integration/dra.TestDRA/GA/ExplicitExtendedResource (1.21s)
    PASS test/integration/dra.TestDRA/GA/UsesAllResources (2.96s)
    PASS test/integration/dra.TestDRA/GA/PublishResourceSlices/create (17.04s)
    PASS test/integration/dra.TestDRA/GA/PublishResourceSlices/recreate-after-delete (26.08s)
    PASS test/integration/dra.TestDRA/GA/PublishResourceSlices/fix-after-update (7.04s)
    PASS test/integration/dra.TestDRA/GA/PublishResourceSlices (50.18s)
    PASS test/integration/dra.TestDRA/GA (177.94s)
    PASS test/integration/dra.TestDRA (595.30s)
    PASS test/integration/dra

    real	10m22.927s
    user	10m36.621s
    sys	1m20.993s

After:

    PASS test/integration/dra/api.TestDRA/disabled/APIDisabled (0.00s)
    PASS test/integration/dra/api.TestDRA/disabled/Pod (0.00s)
    PASS test/integration/dra/ga.TestDRA/GA/PartitionableDevices (0.01s)
    PASS test/integration/dra/ga.TestDRA/GA/DeviceBindingConditions/BasicFlow (0.01s)
    PASS test/integration/dra/ga.TestDRA/GA/DeviceBindingConditions (0.00s)
    PASS test/integration/dra/api.TestDRA/disabled (2.75s)
    PASS test/integration/dra/all.TestDRA/all/ControllerManagerMetrics (0.73s)
    PASS test/integration/dra/api.TestDRA/GA-opt-out/PrioritizedList (0.00s)
    PASS test/integration/dra/api.TestDRA/GA-opt-out (2.61s)
    PASS test/integration/dra/default.TestDRA/default/EvictClusterWithSlices (3.72s)
    PASS test/integration/dra/default.TestDRA/default/FilterTimeout/disabled (2.14s)
    PASS test/integration/dra/all.TestDRA/all/DeviceBindingConditions/TimeoutReached (6.30s)
    PASS test/integration/dra/default.TestDRA/default/FilterTimeout/enabled (4.16s)
    PASS test/integration/dra/default.TestDRA/default/FilterTimeout (6.32s)
    PASS test/integration/dra/default.TestDRA/default/Pod (0.01s)
    PASS test/integration/dra/all.TestDRA/all/DeviceBindingConditions/TimeoutRecover (6.40s)
    PASS test/integration/dra/default.TestDRA/default/UsesAllResources (4.19s)
    PASS test/integration/dra/default.TestDRA/default (13.41s)
    PASS test/integration/dra/default.TestDRA (17.61s)
    PASS test/integration/dra/default
    PASS test/integration/dra/all.TestDRA/all/DeviceBindingConditions/FailureRemove (7.21s)
    PASS test/integration/dra/api.TestDRA/v1beta1/PublishResourceSlices/create (17.05s)
    PASS test/integration/dra/api.TestDRA/v1beta1/PublishResourceSlices (17.05s)
    PASS test/integration/dra/api.TestDRA/v1beta1 (2.68s)
    PASS test/integration/dra/all.TestDRA/all/DeviceBindingConditions/FailureTaints (7.21s)
    PASS test/integration/dra/all.TestDRA/all/DeviceBindingConditions/BasicFlow (12.84s)
    PASS test/integration/dra/all.TestDRA/all/DeviceBindingConditions (12.70s)
    PASS test/integration/dra/all.TestDRA/all/PartitionableDevices/PerDeviceNodeSelection (0.37s)
    PASS test/integration/dra/all.TestDRA/all/PartitionableDevices/MultiHostDevice (0.31s)
    PASS test/integration/dra/all.TestDRA/all/PartitionableDevices (0.68s)
    PASS test/integration/dra/all.TestDRA/all/MaxResourceSlice/basic (0.04s)
    PASS test/integration/dra/all.TestDRA/all/MaxResourceSlice/with-taints-and-consumes-counters (0.07s)
    PASS test/integration/dra/all.TestDRA/all/MaxResourceSlice/with-shared-counters (0.00s)
    PASS test/integration/dra/all.TestDRA/all/MaxResourceSlice (0.12s)
    PASS test/integration/dra/api.TestDRA/v1beta2/PublishResourceSlices/create (17.05s)
    PASS test/integration/dra/api.TestDRA/v1beta2/PublishResourceSlices (17.05s)
    PASS test/integration/dra/api.TestDRA/v1beta2 (2.70s)
    PASS test/integration/dra/api.TestDRA (44.85s)
    PASS test/integration/dra/ga.TestDRA/GA/ResourceSliceController (44.57s)
    PASS test/integration/dra/api
    PASS test/integration/dra/all.TestDRA/all/EvictClusterWithV1alpha3Rule (35.22s)
    PASS test/integration/dra/all.TestDRA/all/EvictClusterWithV1beta2Rule (35.20s)
    PASS test/integration/dra/all.TestDRA/all/EvictClusterWithSlices (3.97s)
    PASS test/integration/dra/all.TestDRA/all/InvalidResourceSlices/invalid-one-node-and-valid-other (1.08s)
    PASS test/integration/dra/all.TestDRA/all/InvalidResourceSlices/only-invalid-for-one-node (1.04s)
    PASS test/integration/dra/all.TestDRA/all/InvalidResourceSlices/invalid-for-all-nodes (1.09s)
    PASS test/integration/dra/all.TestDRA/all/InvalidResourceSlices (3.32s)
    PASS test/integration/dra/all.TestDRA/all/FilterTimeout/disabled (2.16s)
    PASS test/integration/dra/all.TestDRA/all/FilterTimeout/enabled (4.16s)
    PASS test/integration/dra/all.TestDRA/all/FilterTimeout (6.35s)
    PASS test/integration/dra/ga.TestDRA/GA/ShareResourceClaimSequentially (130.55s)
    PASS test/integration/dra/ga.TestDRA/GA/AdminAccess (0.00s)
    PASS test/integration/dra/ga.TestDRA/GA/Pod (0.00s)
    PASS test/integration/dra/ga.TestDRA/GA/ResourceClaimDeviceStatus (0.00s)
    PASS test/integration/dra/ga.TestDRA/GA/PrioritizedList (1.21s)
    PASS test/integration/dra/ga.TestDRA/GA/ImplicitExtendedResource (1.21s)
    PASS test/integration/dra/ga.TestDRA/GA/ExplicitExtendedResource (1.21s)
    PASS test/integration/dra/ga.TestDRA/GA/UsesAllResources (2.85s)
    PASS test/integration/dra/ga.TestDRA/GA/PublishResourceSlices/create (17.04s)
    PASS test/integration/dra/ga.TestDRA/GA/PublishResourceSlices/recreate-after-delete (26.08s)
    PASS test/integration/dra/ga.TestDRA/GA/PublishResourceSlices/fix-after-update (7.04s)
    PASS test/integration/dra/ga.TestDRA/GA/PublishResourceSlices (50.16s)
    PASS test/integration/dra/ga.TestDRA/GA (178.21s)
    PASS test/integration/dra/ga.TestDRA (228.37s)
    PASS test/integration/dra/ga
    PASS test/integration/dra/all.TestDRA/all/ShareResourceClaimSequentially (150.80s)
    PASS test/integration/dra/all.TestDRA/all/AdminAccess (0.00s)
    PASS test/integration/dra/all.TestDRA/all/Convert (0.00s)
    PASS test/integration/dra/all.TestDRA/all/ResourceClaimDeviceStatus (0.01s)
    PASS test/integration/dra/all.TestDRA/all/ImplicitExtendedResource (1.21s)
    PASS test/integration/dra/all.TestDRA/all/ExplicitExtendedResource (1.21s)
    PASS test/integration/dra/all.TestDRA/all/PrioritizedListScoring/single-claim (1.10s)
    PASS test/integration/dra/all.TestDRA/all/PrioritizedList (1.31s)
    PASS test/integration/dra/all.TestDRA/all/PrioritizedListScoring/multi-claim (1.01s)
    PASS test/integration/dra/all.TestDRA/all/PrioritizedListScoring (2.34s)
    PASS test/integration/dra/all.TestDRA/all/UsesAllResources (2.70s)
    PASS test/integration/dra/all.TestDRA/all/PublishResourceSlices/create (17.04s)
    PASS test/integration/dra/all.TestDRA/all/PublishResourceSlices/recreate-after-delete (26.08s)
    PASS test/integration/dra/all.TestDRA/all/PublishResourceSlices/fix-after-update (7.05s)
    PASS test/integration/dra/all.TestDRA/all/PublishResourceSlices (50.17s)
    PASS test/integration/dra/all.TestDRA/all (265.28s)
    PASS test/integration/dra/all.TestDRA (315.46s)
    PASS test/integration/dra/all

    real	5m44.256s
    user	10m44.523s
    sys	1m20.929s
2026-03-17 07:57:07 +01:00
Patrick Ohly
93c8014f34 DRA integration: enforce better test isolation
Tests that are written as if they had the entire apiserver for themselves have
been a recurring problem. Ensuring that would limit us to start a new apiserver
and potentially other components (scheduler, resource claim controller) in
serial tests, which is slower.

Therefore all tests should create a test namespace and derive their driver name
from that, then create slices, classes and claims so that each test only uses
its own instances. If they don't, one test may allocate devices published by
another test. We cannot enforce how tests create their objects because there
may be many different valid ways, but we can detect incorrect allocation by
watching claims and checking their allocation result.

This detects the missing driver name selector in the explicit extended resource
tests (fixed in master already) like this:

    Claim all-explicitextendedresource-dk28h/my-pod-extended-resources-xtcgq has allocated device v1.DeviceRequestAllocationResult{Request:"container-0-request-0", Driver:"driver-all-evictclusterwithrule-slh8g", Pool:"cluster", Device:"device-700", AdminAccess:(*bool)(nil), Tolerations:[]v1.DeviceToleration(nil), BindingConditions:[]string(nil), BindingFailureConditions:[]string(nil), ShareID:(*types.UID)(nil), ConsumedCapacity:map[v1.QualifiedName]resource.Quantity(nil)} from a driver in some other test (driver-all-evictclusterwithrule-slh8g):
      <*v1.ResourceClaim | 0x2d8b54b4820>:
        [...]

The ResourceClaim status simulates device allocation. To avoid false positives,
it needs to use unique driver names like the other tests.
2026-03-17 07:57:02 +01:00
Patrick Ohly
3b63fe83a0 ktesting: support cancellation after WithoutCancel
Not canceling the parent context made sense, but the new context should
be cancelable like any other TContext. Found when passing tCtx.WithoutCancel()
to StartTestServer and the tear-down function got stuck because it couldn't
cancel the context.
2026-03-17 07:50:18 +01:00
Patrick Ohly
e04d25c222 apiserver testing: fix support for pre-created TContext
When StartTestServer is called with a TContext by the caller, tearing down the
apiserver via its tear-down function would also cancel the context for everyone
else using it, which is unexpected and not intended.

Accidentally, scheduler_perf and scheduler/batch relied on this behavior:
- The apiserver clients waited on a context that got its cancellation
  from the root context and thus gets canceled last.
- The apiserver was told to stop earlier, but then waited because
  it still had active clients.
- Shutdown gets slowed down enough that integration testing times out.

The fix is to explicitly cancel the clients before the apiserver. Long-term
ktesting should be changed to do the same as the new testing.T.Context: cancel
the context *before* cleaning up, not *after* it.
2026-03-17 07:50:18 +01:00
Kubernetes Prow Robot
76f0bd54b8 Merge pull request #137533 from tico88612/feat/contextual-logging-servicecidr
Use contextual logging in service cidr controller
2026-03-17 12:11:39 +05:30
Kubernetes Prow Robot
d71ba0f013 Merge pull request #137791 from sivchari/use-connectiontimeout
use connectionTimeout
2026-03-17 10:33:35 +05:30
Kubernetes Prow Robot
f2ccf57022 Merge pull request #136790 from AutuSnow/fix/TestWaitForAllPodsUnmount/timeout
Fix Resolve WaitForAttachAndMount concurrency contention and timeout …
2026-03-17 09:05:38 +05:30
sivchari
dc607d1908 use connectionTimeout
Signed-off-by: sivchari <shibuuuu5@gmail.com>
2026-03-17 11:27:02 +09:00
Kubernetes Prow Robot
0bb0dfd2fd Merge pull request #137785 from nmn3m/nmn3m/add-sig-instrumentation-reviewer
Add nmn3m to sig-instrumentation-reviewers
2026-03-17 07:27:58 +05:30
Kubernetes Prow Robot
a59c9f2575 Merge pull request #137780 from richabanker/nh-kubelet
Enable native histograms gated by feature flag in kubelet
2026-03-17 07:27:51 +05:30
Kubernetes Prow Robot
9cf54337e4 Merge pull request #137689 from jpbetz/fix-reset-fields-and-test
Test that field wiping and field resetting is applied consistently across API
2026-03-17 07:27:43 +05:30
Kubernetes Prow Robot
63e50efa0a Merge pull request #137350 from mortent/PartitionableDevicesToBeta
Promote DRAPartitionableDevices to beta
2026-03-17 07:27:36 +05:30
Kubernetes Prow Robot
5edaecfa53 Merge pull request #137609 from enj/enj/f/constrained_impersonation_beta
KEP-5284: promote constrained impersonation to beta
2026-03-17 06:35:36 +05:30
Kubernetes Prow Robot
2d7979b985 Merge pull request #136367 from bhope/metrics-beta-job-controller
Promote job controller metrics to beta
2026-03-17 04:47:44 +05:30
Kubernetes Prow Robot
c332baec33 Merge pull request #136155 from bhope/metrics-beta-scheduler
Promote scheduler metrics to beta
2026-03-17 04:47:37 +05:30
Nour
9570a0c4f6 Add nmn3m to sig-instrumentation-reviewers 2026-03-17 00:32:30 +02:00
Kubernetes Prow Robot
3b28911985 Merge pull request #137778 from bitoku/genericpleg
Set 0 to trigger the relist immediately
2026-03-17 01:59:38 +05:30
Richa Banker
56cd8b2fc6 Enable native histograms gated by feature flag in kubelet
Signed-off-by: Richa Banker <richabanker@google.com>
2026-03-16 12:18:32 -07:00
Kubernetes Prow Robot
fe37c66436 Merge pull request #137773 from lalitc375/graduate-forbidden
Graduate +k8s:forbidden to beta.
2026-03-17 00:35:37 +05:30
Kubernetes Prow Robot
a415416a32 Merge pull request #137775 from macsko/add_getnode_method_to_cache
Add GetNode method to scheduler cache for testing
2026-03-16 23:37:55 +05:30
Kubernetes Prow Robot
d763ae8f6f Merge pull request #137073 from iomarsayed/snapshot-podgroup-state-before-scheduling-cycle
Snapshot PodGroup state before initiating scheduling cycle
2026-03-16 23:37:48 +05:30
Kubernetes Prow Robot
ac976cf6a1 Merge pull request #136652 from brejman/kep-5732-tas-placement-plugin-config
Extend NodeResourcesFit plugin to score placements in the PodGroup scheduling cycle
2026-03-16 23:37:40 +05:30
Ayato Tokubi
d3056cb0b7 Set 0 to trigger the relist immediately 2026-03-16 17:29:41 +00:00
Kubernetes Prow Robot
41451cb954 Merge pull request #137735 from tosi3k/drop-scheduling-v1alpha1
Remove v1alpha1 scheduling API from the API defaulting test
2026-03-16 22:23:54 +05:30
Kubernetes Prow Robot
57144b592d Merge pull request #137001 from kairosci/ssh-fix
fix: remove duplicate SSH execution in masterExec function
2026-03-16 22:23:47 +05:30
Kubernetes Prow Robot
6c300757e8 Merge pull request #136314 from petern48/etcd_metrics_beta
Graduate etcd metric 'apiserver_storage_events_received_total' to BETA
2026-03-16 22:23:39 +05:30
Kubernetes Prow Robot
9c7e57bb7c Merge pull request #137330 from tico88612/cleanup/test-node-pod-dep-prometheus
Remove dep. Prometheus from test/e2e/node/pods.go
2026-03-16 20:43:49 +05:30
Bartosz
9533a4eddb Implement PlacementScorePlugin in NodeResourcesFit 2026-03-16 15:13:46 +00:00
Kubernetes Prow Robot
624af3f634 Merge pull request #134660 from Priyankasaggu11929/kep-3085-add-callback
[KEP-3085] kubelet - extend RuntimeHelper interface with `OnPodSandboxReady` to update `PodReadyToStartContainers` condition correctly
2026-03-16 20:43:41 +05:30
Maciej Skoczeń
19eeddaa92 Add GetNode method to scheduler cache for testing 2026-03-16 14:21:14 +00:00
Kubernetes Prow Robot
23e0d392ce Merge pull request #137742 from dims/dsrinivas/issue-137739-drain-timeout
kubectl/drain: widen namespace termination retry timeout
2026-03-16 18:53:39 +05:30
Lalit Chauhan
f9c3cd9db4 Graduate +k8s:forbidden to beta. 2026-03-16 10:59:43 +00:00
Kubernetes Prow Robot
bf303f9ec6 Merge pull request #137751 from KevinTMtz/pod-level-resource-managers-forward-compatibility
[PodLevelResourceManagers] CPU & Memory managers forward compatibility - Alpha
2026-03-16 15:15:39 +05:30
Kubernetes Prow Robot
eb0da686b8 Merge pull request #137765 from sivchari/fix-arg-order
fix: argument order of errors.Is
2026-03-16 13:41:39 +05:30
sivchari
183ebf26d7 fix: argument order of errors.Is
Signed-off-by: sivchari <shibuuuu5@gmail.com>
2026-03-16 16:23:26 +09:00
Jian Qiu
6c8e5e2d41 Add more unit tests for constrained impersonation (#136737)
* Add more unit tests for constrained impersonation

test cases for large number of groups/extra
test cases for system:masters constrained impersonation is not allowed

Signed-off-by: Jian Qiu <jqiu@redhat.com>

* Validate each authz request in the constrained impersonation unit test

Signed-off-by: Jian Qiu <jqiu@redhat.com>

---------

Signed-off-by: Jian Qiu <jqiu@redhat.com>
2026-03-16 11:03:37 +05:30
Priyanka Saggu
bd1ed91bb2 fix TestManagedBy by resetting metrics after controller start like other tests 2026-03-16 11:02:32 +05:30
Priyanka Saggu
7b71b3a165 make OnPodSandboxReady async to work correctly with on-demand per-pod relist 2026-03-16 10:55:52 +05:30
Priyanka Saggu
410efb048f add e2e tests verifying PodReadyToStartContainers condition set using criProxy to inject delay time 2026-03-16 10:14:02 +05:30
Priyanka Saggu
d7abab886e add tests to verify invocation of OnPodSandboxReady method and PodReadyToStartContainers condition 2026-03-16 10:14:02 +05:30
Priyanka Saggu
ab73613f42 [kubelet] add new OnPodSandboxReady method to RuntimeHelper interface to update PodReadyToStartContainers condition immediately after sandbox creation
This is to address the bug (gh-issue 134460), which reported that currently `PodReadyToStartContainers` condition is only set to `True` after the container image pull is completed. so, if the image size is big and image pull takes significant time to finish, the pod status managaer is blocked and the condition remaind `False`.

The commit implements the following changes, to allow kubelet to update the `PodReadyToStartContainers` pod condition immediately after all three requirements (pod sandbox, networking, volume)are ready, but before container images are pulled or containers are created.
* add `OnPodSandboxReady` method to the `RuntimeHelper` interface in `container/helpers.go`
* implement the `OnPodSandboxReady` method in Kubelet
* inside `(containerRuntime).SyncPod`, after sandbox creation and network configuration, invoke `runtimeHelper.OnPodSandboxReady()` directly
  (this method retrieves current pod status, generates updated API status, and notifies the status manager to sync to the API server)

This implementation is gated under `PodReadyToStartContainersCondition` feature gate, and fails gracefully, i.e, it only logs error and continues the pod creation process to make sure that these new changes don't block pod startup.
2026-03-16 10:14:02 +05:30
Kubernetes Prow Robot
8cfc85428a Merge pull request #137678 from aaron-prindle/flowcontrol-discriminator-and-member-dv-migration
feat: flowcontrol LimitResponse and PriorityLevelConfigurationSpec discriminator and member dv migration
2026-03-16 09:15:37 +05:30
Kubernetes Prow Robot
a274c27dd3 Merge pull request #137727 from SergeyKanzhelev/removeRaceInObservedGen
wait for container condition to be true before sending the pod update
2026-03-16 04:19:36 +05:30