Commit graph

55345 commits

Author SHA1 Message Date
Peter Hunt
389825754c proc mount: drop featuregate note on API
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2026-03-13 15:20:49 -04:00
Peter Hunt
539352eddd feature: promote ProcMountType to GA
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2026-03-13 12:27:16 -04:00
Kubernetes Prow Robot
7f3a5ab96f
Merge pull request #136579 from romanbaron/reuse-scheduling-signature
Reuse pod scheduling signature for opportunistic batching
2026-03-13 20:15:39 +05:30
Kubernetes Prow Robot
0bf52890c5
Merge pull request #137555 from natasha41575/allow_nri_to_block_resize
[InPlacePodVerticalScaling] Allow CRI (and NRI) to block pod-level resizes
2026-03-13 17:23:50 +05:30
Kubernetes Prow Robot
2bd6c7fe3c
Merge pull request #137298 from dims/dsri/cri-streaming-option-a-hardcut
cri streaming option a hardcut - add new staging repositories `streaming` and `cri-streaming`
2026-03-13 17:23:36 +05:30
Patrick Ohly
85bca3b684 DRA device taints: fix beta-enabled, alpha-disable configurations
DeviceTaintRule is off by default because the corresponding v1beta2 API group
is off. When enabled, the potentially still disabled v1alpha3 API version was
used instead of the new v1beta2, causing the scheduler to fail while setting up
informers and then not scheduling pods.
2026-03-13 09:20:57 +01:00
Kubernetes Prow Robot
e3c5ead23f
Merge pull request #137676 from ndixita/allocated-resources-cleanup
Add test coverage to ensure that when PLR are checkpointed overhead is excluded from it
2026-03-13 10:33:41 +05:30
Kubernetes Prow Robot
49a1007ff2
Merge pull request #137566 from yangjunmyfm192085/fixgetpods
Improve stability by sorting containers by create time and ID in kubeGenericRuntimeManager.GetPods() and GetPod()
2026-03-13 10:33:34 +05:30
Kubernetes Prow Robot
eb15e2767f
Merge pull request #137362 from tallclair/on-demand-relist
On-demand per-pod PLEG Relist
2026-03-13 06:15:40 +05:30
Kubernetes Prow Robot
21305568b0
Merge pull request #137083 from brejman/generate-plugin
Add placement generator plugin interfaces and logic for running them
2026-03-13 06:15:33 +05:30
Kubernetes Prow Robot
8cca7a629e
Merge pull request #137679 from jpbetz/fix-and-test-wiping-reset-consistency
Fix and test wiping reset consistency
2026-03-13 05:15:34 +05:30
Joe Betz
a5a0327d6d
Fix test reset fields of servicecidr 2026-03-12 17:43:36 -04:00
Joe Betz
a073972cad
Add test to ensure reset fields is applied consistently 2026-03-12 17:43:04 -04:00
Kubernetes Prow Robot
4730b179bd
Merge pull request #137321 from nojnhuh/resourceclaimname-status-validation
Fix path in Pod status resourceClaimName validation
2026-03-13 02:57:35 +05:30
Natasha Sarkar
7dee4a262f allow nri plugins to block pod-level resizes 2026-03-12 20:43:02 +00:00
ndixita
27b99fe2ae
Add test coverage to ensure that when PLR are checkpointed, overhead is excluded from it. And when mapping allocated resources back from the checkpoint to pod spec the values have resources excluding the overhead 2026-03-12 20:06:58 +00:00
Roman Baron
6fcb95e72e scheduler: Moved TestQueuedPodInfo_UpdateInvalidatesSignature from queue/scheduling_queue_test.go to framework/types_test.go 2026-03-12 21:24:23 +02:00
Roman Baron
1e0545b1fa scheduler: Removed TestPriorityQueue_SignatureReuse 2026-03-12 20:52:51 +02:00
Kubernetes Prow Robot
4e2bbc78bf
Merge pull request #137170 from pohly/dra-device-taints-beta
DRA device taints: graduate to beta
2026-03-13 00:13:38 +05:30
Roman Baron
e436c1c812 scheduler: Added a test that validates that adding pod to a queue calculates pod signature and added more cases when pod is updated. Specifically when pod is in backoffQ and unschedulablePods or does not exist in any queue 2026-03-12 20:43:14 +02:00
Tim Allclair
0b0b77ae20 Request on-demand relist when performing sync changes 2026-03-12 18:24:03 +00:00
Patrick Ohly
7d2781a0c3 DRA device taints: generated files 2026-03-12 18:26:03 +01:00
Patrick Ohly
566dc7f3f3 DRA device taints: graduate to beta
The fields become beta, enabled by default. DeviceTaintRule gets
added to the v1beta2 API, but support for it must remain off by default
because that API group is also off by default.

The v1beta1 API is left unchanged. No-one should be using it
anymore (deprecated in 1.33, could be removed now if it wasn't for
reading old objects and version emulation).

To achieve consistent validation, declarative validation must be enabled also
for v1alpha3 (was already enabled for other versions). Otherwise,
TestVersionedValidationByFuzzing fails:

    --- FAIL: TestVersionedValidationByFuzzing (0.09s)
        --- FAIL: TestVersionedValidationByFuzzing/resource.k8s.io/v1beta2,_Kind=DeviceTaintRule (0.00s)
            validation_test.go:109: different error count (0 vs. 1)
                resource.k8s.io/v1alpha3: <no errors>
                resource.k8s.io/v1beta2: "spec.taint.effect: Unsupported value: \"幤HxÒQP¹¬永唂ȳ垞ş]嘨鶊\": supported values: \"NoExecute\", \"NoSchedule\", \"None\""
            ...
2026-03-12 18:26:02 +01:00
Kubernetes Prow Robot
f7f694e5e0
Merge pull request #136792 from rata/userns-goes-ga
feature: Migrate UserNamespacesSupport to GA
2026-03-12 21:57:36 +05:30
Roman Baron
c0e973dc70 scheduler: Replaced context.Context and testing.T parameters with ktesting.TContext in scheduling_queue_test.go 2026-03-12 17:31:11 +02:00
Roman Baron
c03033619c
Update pkg/scheduler/metrics/metric_recorder.go
Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>
2026-03-12 16:42:25 +02:00
Rodrigo Campos
8db51091e8 Remove references to UserNamespacesSupport feature gate from core types
It's GA now. To regenerate the files I did:
        make WHAT=cmd/kube-apiserver
        make update

While we are there, remove the reference that the field is alpha.

Signed-off-by: Rodrigo Campos <rodrigo@amutable.com>
2026-03-12 15:20:09 +01:00
Rodrigo Campos
527aa66124 feature: Move UserNamespacesSupport to GA
Signed-off-by: Rodrigo Campos <rodrigo@amutable.com>
2026-03-12 15:20:02 +01:00
Kubernetes Prow Robot
a3ac5144e7
Merge pull request #137501 from danwinship/nftables-list-redux
Fix kube-proxy on systems with nft 1.1.3 (take 2)
2026-03-12 19:41:45 +05:30
Kubernetes Prow Robot
cdcc47c862
Merge pull request #137346 from aramase/aramase/f/kep_5793_alpha_impl
KEP-5793: Add manifest-based admission control config (alpha)
2026-03-12 19:41:37 +05:30
Davanum Srinivas
66f49068b3
fixup: remove unused klog import; drop rogpeppe from apimachinery
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-03-12 09:59:56 -04:00
Davanum Srinivas
1ee1ff97fb
staging: extract CRI streaming modules with client-go compatibility
Extract streaming code into dedicated staging modules while keeping stable
compatibility APIs for external client-go consumers.

This commit:
- adds `k8s.io/cri-streaming` for CRI exec/attach/portforward server code
- adds `k8s.io/streaming` as the canonical home for shared transport
  primitives (`httpstream`, `spdy`, `wsstream`, runtime helpers)
- switches in-tree transport consumers to `k8s.io/streaming`
- removes in-tree kubelet CRI streaming package
- preserves NO_PROXY/no_proxy CIDR handling in extracted SPDY proxier logic
- adds deprecated `k8s.io/apimachinery/pkg/util/httpstream` compatibility
  wrappers (`httpstream`, `spdy`, `wsstream`) backed by `k8s.io/streaming`
- restores exported client-go SPDY/portforward API signatures to
  apimachinery `httpstream` types for downstream compatibility
- adds streaming-native client-go adapters/constructors so in-tree callers
  can use `k8s.io/streaming` without changing external compatibility APIs
- deduplicates SPDY-over-websocket dial negotiation shared by compat and
  streaming tunneling dialers
- logs dropped unknown stream types in `RemoveStreams` adapter fallbacks to
  improve compatibility-path debuggability
- adds integration coverage for the streaming-upgrader-to-client-go-compat
  adapter path against a real cri-streaming exec endpoint
- clarifies kubectl streaming import aliasing to avoid `httpstream` package
  ambiguity
- updates tests, import restrictions, publishing metadata, and vendor/module
  metadata for the new staging modules

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-03-12 09:59:55 -04:00
Roman Baron
863c68108c
Update pkg/scheduler/backend/queue/scheduling_queue.go
Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>
2026-03-12 15:47:24 +02:00
Kubernetes Prow Robot
9874e76ac4
Merge pull request #137662 from tosi3k/revert-136254-extend-postfilter
Revert "Extend PostFilterResult with a list of victim Pods"
2026-03-12 17:33:42 +05:30
Bartosz
43c5d2a419
Add PlacementGeneratePlugin interface and runner 2026-03-12 09:33:05 +00:00
Antoni Zawodny
fa29c9db6a
Revert "Extend PostFilterResult with a list of victim Pods" 2026-03-12 10:03:35 +01:00
Roman Baron
de1385fe1b scheduler: Added ObserveFrameworkDurationAsync to metrics recorder 2026-03-12 10:31:38 +02:00
Roman Baron
7b00255135 scheduler: Removed plugin stats from pod signing process 2026-03-12 10:31:04 +02:00
Roman Baron
62aa95c110 scheduler: Created new context when adding or updating pod in scheduling queue 2026-03-12 10:30:38 +02:00
Roman Baron
7140cf5dd9 Revert "scheduler: Added context to Scheduler struct and used it in eventhandlers instead of context.Background"
This reverts commit 770958dd396db09c3daedc56daccb01090123855.
2026-03-12 10:30:38 +02:00
Roman Baron
82c7dddac0 scheduler: Added context to Scheduler struct and used it in eventhandlers instead of context.Background 2026-03-12 10:30:38 +02:00
Roman Baron
64db71a727 scheduler: Removed logger parameter from functions that also receive context in scheduling_queue_test.go 2026-03-12 10:30:38 +02:00
Roman Baron
67cc4e5412 scheduler: Removed logger from functions that also receive context 2026-03-12 10:30:38 +02:00
Roman Baron
d54a935d06 scheduler: removed wrapping anonymous function when building podSigners map 2026-03-12 10:30:38 +02:00
Roman Baron
2904e7f309 scheduler: replaced logger with HandleErrorWithLogger 2026-03-12 10:30:38 +02:00
Roman Baron
2a394caa07 scheduler: Added isOpportunisticBatchingEnabled in scheduling_queue.go 2026-03-12 10:30:38 +02:00
Roman Baron
623d42b8bf scheduler: Removed lazy pod signing 2026-03-12 10:30:38 +02:00
Roman Baron
f032cb548a scheduler: Added logger parameter to signPod in scheduling_queue.go 2026-03-12 10:30:38 +02:00
Roman Baron
85331e916f Update pkg/scheduler/backend/queue/scheduling_queue.go
Co-authored-by: Maciej Skoczeń <87243939+macsko@users.noreply.github.com>
2026-03-12 10:30:38 +02:00
Roman Baron
858040f604 scheduler: Added eager pod signature calculation 2026-03-12 10:30:38 +02:00