Commit graph

54987 commits

Author SHA1 Message Date
Maciej Wyrzuc
4a326b0196 Preempt pods in prebind phase without delete calls.
This change allows the preemption to preempt a pod that is not yet
bound, but is already in prebind phase) without issuing a delete call to the
apiserver.

Pods are added to a special map of pods currently in prebind phaseand
preemption can cancel the context that is used for given pod prebind phase ,
allowing it to gracefully handle error in the same manner as errors
coming out from prebind plugins. This results in pods being pushed to
backoff queue, allowing them to be rescheduled in upcoming scheduling
cycles.
2026-02-18 09:00:23 +00:00
Kubernetes Prow Robot
338a3bcef8
Merge pull request #136254 from tosi3k/extend-postfilter
Extend PostFilterResult with a list of victim Pods
2026-02-18 00:23:37 +05:30
Kubernetes Prow Robot
4540abb5d8
Merge pull request #136704 from Ignoramuss/optionalorrequired-authentication
api: enable optionalorrequired linter for authentication API
2026-02-17 23:31:47 +05:30
Antoni Zawodny
25d93e1f8e Extend PostFilterResult with a list of victim Pods 2026-02-17 16:50:20 +01:00
Kubernetes Prow Robot
f9c9f03b05
Merge pull request #136618 from macsko/workload_scheduling_cycle
KEP-4671: Introduce Workload Scheduling Cycle
2026-02-17 15:21:04 +05:30
Maciej Skoczeń
6233b25907 Introduce Workload Scheduling Cycle
Add integration tests for gang and basic policy workload scheduling

Add more tests for cluster snapshot

Proceed to binding cycle just after pod group cycle

Enforce one scheduler name per pod group, rename workload cycle to pod group cycle

Add unit tests for pod group scheduling cycle

Run ScheduleOne tests treating pod as part of a pod group

Rename NeedsPodGroupCycle to NeedsPodGroupScheduling

Observe correct per-pod and per-podgroup metrics during pod group cycle

Rename pod group algorithm status to waiting_on_preemption

Mention forgotAllAssumedPods is a safety check
2026-02-17 09:02:32 +00:00
Kubernetes Prow Robot
f067ad1e8f
Merge pull request #135715 from darshansreenivas/dtumkur-pr-network-tag-cidr
networkpolicy: migrate ipBlock.cidr validation to DV
2026-02-16 07:01:58 +05:30
darshansreenivas
bc17031d19 network: migrate CIDR validation to DV
Co-authored-by: Abhishek Srivastava <abhishek@asrivas.me>
2026-02-15 16:00:41 -08:00
Mads Jensen
bbbc09fb11 proxy/utils: Use net.JoinHostPort to format address. 2026-02-15 16:53:17 +01:00
Ignoramuss
3b25b16ce1 api: enable optionalorrequired linter for authentication API
Add missing +optional and +required markers to authentication API types
across v1, v1beta1, and v1alpha1 versions, and remove authentication
from the linter exception lists.

Part of kubernetes/kubernetes#134671
2026-02-13 17:40:47 -08:00
Kubernetes Prow Robot
574b3aad0f
Merge pull request #136998 from yongruilin/master-vg_hpa-ifenable
Migrate HPA MinReplicas to Declarative Validation with Feature Gate Support
2026-02-14 06:59:58 +05:30
yongruilin
8dd711ea80 address feedback: pass HPAScaleToZero option when already in use 2026-02-13 22:50:16 +00:00
Kubernetes Prow Robot
23ea1ec286
Merge pull request #135769 from vshkrabkov/cleanup/unsch-pods-remove-recorder-nil-check
Remove nil checks for unschedulable pods metrics recorder
2026-02-13 18:03:59 +05:30
Kubernetes Prow Robot
5467a9f9e2
Merge pull request #135028 from itzPranshul/master-vg-enable-clusterRole
rbac: migrate PolicyRule.verbs to Declarative Validation
2026-02-13 10:27:59 +05:30
Kubernetes Prow Robot
ec2c7739bc
Merge pull request #135808 from tico88612/cleanup/SeparateCacheWatchRPC
SeparateCacheWatchRPC LockToDefault set true
2026-02-13 08:53:59 +05:30
Kubernetes Prow Robot
1132395d4a
Merge pull request #136793 from yongruilin/master_vg-strategy-alpha
KEP-5073:  Declarative Validation Lifecycle Update
2026-02-13 07:16:00 +05:30
yongruilin
33dec2246f address feedback: refactor declarative validation migration checks
- Extract HV error filtering into filterHandwrittenErrors for readability.
- Simplify errOutputMatcherByStability initialization in testing helpers.
2026-02-13 00:54:18 +00:00
yongruilin
d1b805f41e Mark scheduling Workload validation as Alpha in test 2026-02-13 00:54:18 +00:00
yongruilin
93b901d177 Enhance validation testing: add support for all declarative rules enforcement 2026-02-13 00:54:18 +00:00
yongruilin
4d2a2abdee scheduling/workload: fix tests requiring RequestInfo for declarative validation
- Update resttest and genericregistrytest to support RequestInfo injection.
- Inject RequestInfo in Workload storage and strategy tests to resolve context-related failures.
- Refine validate.go log messages and error deduplication logic.
2026-02-13 00:54:18 +00:00
yongruilin
4f56a298cc Enforce zero mismatches in validation equivalence testing 2026-02-13 00:54:18 +00:00
yongruilin
2ef358870a Update validation equivalence testing for lifecycle enforcement
- Test scenarios: Beta Enabled, Beta Disabled, and Legacy (emulated 1.35).
- Remove deprecated Takeover gate references and redundant coverage checks.
- Add TODO to remove legacy emulation in 1.39.
- Update documentation to match the new Validation Lifecycle strategy.
2026-02-13 00:54:18 +00:00
yongruilin
a972411936 opt-in Workload v1alpha1 to explicit declarative enforcement
Mark Workload v1alpha1 validations as +k8s:alpha(since:"1.35") and
configure the registry strategy to use WithDeclarativeEnforcement().
This transitions the resource to the stability-based validation lifecycle,
where enforcement is determined by tag stability and feature gates.
Includes generated code updates.
2026-02-13 00:54:18 +00:00
yongruilin
0c679cea68 Introduce DeclarativeValidationBeta and deprecate Takeover gate
This change introduces the DeclarativeValidationBeta feature gate in v1.36
as the global safety switch for Beta-stage validation rules and marks
DeclarativeValidationTakeover as deprecated.

Following KEP-5073.
2026-02-13 00:54:11 +00:00
Kubernetes Prow Robot
9571e19da9
Merge pull request #134675 from JoelSpeed/enable-kal-optionalorrequired-apiserver-internal
Enforce either optional or required tag on apiserverinternal API group
2026-02-13 06:10:00 +05:30
Kubernetes Prow Robot
47e2318e85
Merge pull request #136952 from dgrisonnet/kubelet-metrics-provider
Add kubelet_metrics_provider metric
2026-02-13 04:44:00 +05:30
Kubernetes Prow Robot
7f13600dad
Merge pull request #136400 from vinayakankugoyal/gitrepo
KEP:5040 Lock gitRepo Volume Driver to disabled.
2026-02-13 03:58:10 +05:30
yongruilin
c9c926a96c test: add ratcheting test case for HPA MinReplicas 2026-02-12 21:57:39 +00:00
yongruilin
36fcbaef23 test: add declarative validation tests for HPA MinReplicas 2026-02-12 21:23:41 +00:00
yongruilin
09681e23a2 feat: migrate HorizontalPodAutoscalerSpec.MinReplicas to declarative validation 2026-02-12 21:23:41 +00:00
Kubernetes Prow Robot
d7f6f91dae
Merge pull request #135820 from pohly/dra-sharing-claim-sequentially-test
DRA: sharing claim sequentially test
2026-02-13 01:50:09 +05:30
Kubernetes Prow Robot
0ba7bf5716
Merge pull request #135503 from aojea/externalname_repairip
repairip externalname to cluster ip type
2026-02-13 01:50:01 +05:30
Joel Speed
82a9a99a44
Restore omitempty on ServerStorageVersion fields 2026-02-12 18:55:47 +00:00
Kubernetes Prow Robot
98dd4d8e60
Merge pull request #136812 from rpb-ant/rpb/sts-not-found
Add 404 handling for the statefulset controller pod deletion codepath
2026-02-13 00:18:00 +05:30
Damien Grisonnet
22706b7bdf pkg/kubelet: add kubelet_metrics_provider metric
This metric is meant to help end-users identify which metrics provider
kubelet is using under the hood to expose container stats.

Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2026-02-12 19:28:52 +01:00
Kubernetes Prow Robot
5b63a8c68e
Merge pull request #136921 from dims/dump-from-utils
Move dump package from apimachinery to k8s.io/utils
2026-02-12 22:28:10 +05:30
Ryan Brewster
11c6f8c7c8
Clean up redundant IsNotFound checks in stateful_set_control
🏠 Remote-Dev: homespace
2026-02-12 14:35:10 +00:00
Joel Speed
0ebf47cb08
Update generated code 2026-02-12 14:12:35 +00:00
Davanum Srinivas
550cc8645b
Move dump package from apimachinery to k8s.io/utils
Replace all imports of k8s.io/apimachinery/pkg/util/dump with
k8s.io/utils/dump across the repo. The apimachinery dump package
now contains deprecated wrapper functions that delegate to
k8s.io/utils/dump for backwards compatibility.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-02-12 07:34:19 -05:00
Patrick Ohly
bff684d951 DRA ResourceClaim controller: update logging
This provides a bit more information when the controller touches a
ResourceClaim.
2026-02-12 12:33:22 +01:00
Kubernetes Prow Robot
c89da3c99f
Merge pull request #136238 from herb-duan/fix-kubelet-status-reconcile
fix(kubelet): ignore resource claim statuses in pod status comparison
2026-02-12 15:03:59 +05:30
Kubernetes Prow Robot
00bf52745a
Merge pull request #131846 from yangjunmyfm192085/fixtest
Adjust the expected and actual parameters of the unit test Equal function to the correct order
2026-02-12 14:14:01 +05:30
Sunyanan Choochotkaew
e1a7952a6c
DRA: Rename GetBaseDeviceID to GetDeviceID for SharedDeviceID
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
2026-02-12 13:47:11 +09:00
Kubernetes Prow Robot
1956f4e90d
Merge pull request #136701 from Jefftree/fix-tombstone
Add tombstone handling for serviceaccount and attachdetach controllers
2026-02-12 08:24:09 +05:30
Kubernetes Prow Robot
54489c1a33
Merge pull request #136729 from ahmedtd/podcert-pkcs10
Pod Certificates: Add StubPKCS10Request; migrate in-tree usages
2026-02-12 04:43:59 +05:30
Kubernetes Prow Robot
04d82d95fa
Merge pull request #136796 from kairosci/fix/kube-proxy-nftables-udata
Fix kube-proxy nftables crash with newer nftables versions
2026-02-12 03:53:59 +05:30
Jefftree
334fa1cef8 Add tombstone handling for serviceaccount and attachdetach controllers 2026-02-11 16:06:29 -05:00
Alessio Attilio
72ef5b34a8 pkg/proxy/nftables: fix kube-proxy crash with newer nftables versions
Fixes kube-proxy's nftables mode to work on systems with nft 1.1.3.
2026-02-11 21:46:23 +01:00
Kubernetes Prow Robot
311071d300
Merge pull request #133427 from natasha41575/admitHandler
[FG:InPlacePodVerticalScaling] refactor allocation feasibility check into its own admitHandler
2026-02-12 00:10:00 +05:30
Kubernetes Prow Robot
fce5bc2854
Merge pull request #134316 from xigang/node_controller_pod
node_lifecycle_controller: fix processing deleted pod events, which are currently missed
2026-02-11 09:26:00 +05:30