Commit Graph

52514 Commits

Author SHA1 Message Date
Filip Křepinský
b0b89d3bd2 fix the DeploymentReplicaSetTerminatingReplicas version 2025-03-27 20:28:21 +01:00
Filip Křepinský
8db1426554 rename DeploymentPodReplacementPolicy FG to DeploymentReplicaSetTerminatingReplicas 2025-03-27 20:27:44 +01:00
Kubernetes Prow Robot
070f0ad3bd Merge pull request #129970 from mortent/AddResourceV1beta2API
Add resource v1beta2 API
2025-03-26 09:10:47 -07:00
Morten Torkildsen
e761be47a4 Run make update 2025-03-26 14:52:36 +00:00
Morten Torkildsen
39507d911f Add resource v1beta2 API 2025-03-26 14:41:09 +00:00
Kubernetes Prow Robot
ff25881bc1 Merge pull request #130556 from sreeram-venkitesh/kep-4960-container-stop-signals
KEP 4960: Container Stop Signals
2025-03-24 16:36:32 -07:00
Kubernetes Prow Robot
34e80be133 Merge pull request #130797 from jm-franc/configurable-tolerance
Add support for HPA configurable tolerance
2025-03-24 14:20:32 -07:00
Sreeram
d6d9a354d7 Generated files 2025-03-25 02:06:29 +05:30
Sreeram
f035e37c4b Added e2e test and fixed existing pod test 2025-03-25 02:05:30 +05:30
Sreeram
94ddb3a98f Implementation 2025-03-25 02:02:58 +05:30
Sreeram
0380f2c41c Validation 2025-03-25 01:58:04 +05:30
Sreeram
70540c9f43 API changes 2025-03-25 01:56:45 +05:30
Kubernetes Prow Robot
62555cadc7 Merge pull request #130701 from roycaihw/psi-metrics
Surface Pressure Stall Information (PSI) metrics
2025-03-24 10:38:33 -07:00
Jean-Marc François
ac107137ce Refresh autogenerated files following the configurable tolerance updates. 2025-03-21 18:48:38 -04:00
Jean-Marc François
dc1696d807 Fix API doc and tolerance field handling when gate is flipped. 2025-03-21 18:48:37 -04:00
Jean-Marc François
2dd9eda47f Add configurable tolerance logic. 2025-03-21 18:48:37 -04:00
Jean-Marc François
a41284d9fa Add the HorizontalPodAutoscaler tolerance field.
Includes v2beta2 HPA round-trip conversion, defaulting, and validation.
2025-03-21 18:48:37 -04:00
Jean-Marc François
463b15b9b2 Add the HPAConfigurableTolerance feature gate. 2025-03-21 18:48:37 -04:00
Haowei Cai
c86ff2339d Unit and E2E tests 2025-03-21 15:54:22 +00:00
Kubernetes Prow Robot
71eb04295a Merge pull request #130970 from pohly/dra-device-taints-rest-flake
DRA API: fix DeviceTaintRule REST storage test
2025-03-21 04:16:31 -07:00
Haowei Cai
6bbaf8cb10 Extend CRI stats provider to support PSI 2025-03-21 07:42:52 +00:00
Haowei Cai
92a42e65ec Surface cadvisor PSI metrics to summary API and prometheus metrics 2025-03-21 07:42:51 +00:00
Patrick Ohly
a18354c60d DRA API: fix DeviceTaintRule REST storage test
The defaulting of TimeAdded randomly broke some of the tests:

   TestList:
       resttest.go:1393: expected:
       []runtime.Object{(*resource.DeviceTaintRule)(0xc000b83080), (*resource.DeviceTaintRule)(0xc000b831e0)},
       got:
       []runtime.Object{(*resource.DeviceTaintRule)(0xc0003db608), (*resource.DeviceTaintRule)(0xc0003db750)}
       ...

   TestCreate:
    resttest.go:346: unexpected obj: &resource.DeviceTaintRule{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"foo2", GenerateName:"", Namespace:"", SelfLink:"", UID:"18d3084d-7d11-4575-8730-4650b81cf1a7", ResourceVersion:"8", Generation:1, CreationTimestamp:time.Date(2025, time.March, 21, 8, 27, 23, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:resource.DeviceTaintRuleSpec{DeviceSelector:(*resource.DeviceTaintSelector)(nil), Taint:resource.DeviceTaint{Key:"example.com/taint", Value:"", Effect:"NoExecute", TimeAdded:time.Date(2025, time.March, 21, 8, 27, 23, 0, time.Local)}}}, expected &resource.DeviceTaintRule{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"foo2", GenerateName:"", Namespace:"", SelfLink:"", UID:"18d3084d-7d11-4575-8730-4650b81cf1a7", ResourceVersion:"8", Generation:1, CreationTimestamp:time.Date(2025, time.March, 21, 8, 27, 23, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:resource.DeviceTaintRuleSpec{DeviceSelector:(*resource.DeviceTaintSelector)(nil), Taint:resource.DeviceTaint{Key:"example.com/taint", Value:"", Effect:"NoExecute", TimeAdded:time.Date(2025, time.March, 21, 8, 27, 24, 0, time.Local)}}}

Failure rate before: 3m40s: 1332 runs so far, 7 failures (0.53%)

It's not obvious from the test failure, but the difference is the
TimeAdded. Setting it beforehand to a value that can be encoded (i.e. truncated
to seconds) fixes the flake.

Failure rate after: 5m0s: 1825 runs so far, 0 failures
2025-03-21 08:33:39 +01:00
carlory
0882efaf8e Remove general available feature-gate CPUManager
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-03-21 10:42:29 +08:00
Kubernetes Prow Robot
d383020cc8 Merge pull request #130831 from ajaysundark/disable-swap-resize
disable in-place pod vertical scaling for swap enabled pods
2025-03-20 19:38:37 -07:00
Kubernetes Prow Robot
609bf00201 Merge pull request #130189 from ania-borowiec/129967_get_rid_of_caching_cluster_events_in_binding
Call queue.Done() before PreBind phase, removing the pod in binding from inFlightPods to save memory
2025-03-20 18:18:38 -07:00
Kubernetes Prow Robot
507eee87e5 Merge pull request #127092 from munnerz/pod-topology
KEP-4742: Copy topology labels from Node objects to Pods upon binding/scheduling
2025-03-20 18:18:30 -07:00
James Munnelly
8cfb9adbf6 overwrite existing labels during pod Binding storage 2025-03-20 22:39:38 +00:00
Kubernetes Prow Robot
838f3c0852 Merge pull request #130577 from KevinTMtz/pod-level-hugepages
[PodLevelResources] Pod Level Hugepage Resources
2025-03-20 15:34:38 -07:00
Ania Borowiec
17acc4a5ee Move queue.Done() before Prebind, add tests 2025-03-20 22:14:36 +00:00
Kubernetes Prow Robot
b0d6079ddc Merge pull request #130947 from pohly/dra-device-taints-flake
DRA device taints: fix some race conditions
2025-03-20 14:16:55 -07:00
Kubernetes Prow Robot
dca334e350 Merge pull request #130859 from hakuna-matatah/optimize-ds
Optimize DS Controller Performance: Reduce Work Duration Time & Minimize Cache Locking.
2025-03-20 14:16:39 -07:00
Ajay Sundar Karuppasamy
a09cb22e4d disable in-place vertical pod scaling for non-restartable swappable containers 2025-03-20 20:43:18 +00:00
James Munnelly
a490960c92 fixup! KEP-4742: Node Topology Labels via Downward API 2025-03-20 20:23:19 +00:00
James Munnelly
01ae1b1b5a remove kubernetes.io/hostname label copying 2025-03-20 20:19:53 +00:00
James Munnelly
934e247030 Remove kubernetes.io/hostname label copying, skip overriding, and support direct spec.nodeName changes. 2025-03-20 20:19:53 +00:00
James Munnelly
6ddabb6ee6 updating to reflect latest KEP design 2025-03-20 20:19:53 +00:00
James Munnelly
5e7e1e7cf1 KEP-4742: Node Topology Labels via Downward API 2025-03-20 20:19:51 +00:00
Kubernetes Prow Robot
2850abd029 Merge pull request #130943 from liggitt/logs-handler-flag-help
Ensure --enable-logs-handler help appears in kube-apiserver help
2025-03-20 13:09:07 -07:00
Kubernetes Prow Robot
52ab771774 Merge pull request #130917 from vinaykul/ippr-mem-req-ucr
Invoke UpdateContainerResources or trigger container restarts when memory requests are resized
2025-03-20 13:08:56 -07:00
Kubernetes Prow Robot
322083c948 Merge pull request #130772 from macsko/pop_from_backoffq_when_activeq_is_empty_new
Pop from backoffQ when activeQ is empty
2025-03-20 13:08:47 -07:00
Kubernetes Prow Robot
2546557012 Merge pull request #130621 from sreeram-venkitesh/4818-sleep-action-zero-value-beta-graduation
KEP 4818: PodLifecycleSleepActionAllowZero to Beta
2025-03-20 13:08:39 -07:00
Haowei Cai
67bdfa7d6e Add alpha feature gate KubeletPSI 2025-03-20 19:25:08 +00:00
Patrick Ohly
cfb9486417 DRA taint eviction: avoid nil panic
The timed worker queue actually can have nil entries in its map if the work was
kicked off immediately. This looks like an unnecessary special case (it would
be fine to call AfterFunc with a duration <= 0 and it would do the right
thing), but to avoid more sweeping changes the fix consists of documenting this
special behavior and adding a nil check.
2025-03-20 19:49:54 +01:00
Patrick Ohly
56adcd06f3 DRA device eviction: fix eviction triggered by pod scheduling
Normally the scheduler shouldn't schedule when there is a taint, but perhaps it
didn't know yet.

The TestEviction/update test covered this, but only failed under the right
timing conditions. The new event handler test case covers it reliably.
2025-03-20 19:49:54 +01:00
Kubernetes Prow Robot
2ee063dae0 Merge pull request #130667 from Chulong-Li/fix
Adjust the test logic on TestGetStaticPodToMirrorPodMap
2025-03-20 11:24:56 -07:00
Kubernetes Prow Robot
6bc352f6a9 Merge pull request #130535 from ffromani/cpumanager-policy-options-ga
node: kep-2625: cpu manager policy options GA
2025-03-20 11:24:46 -07:00
Kubernetes Prow Robot
451d032915 Merge pull request #130210 from everpeace/KEP-3619-promote-SupplementalGroupsPolicy-to-Beta
KEP-3619: Promote SupplementalGroupsPolicy feature to Beta
2025-03-20 11:24:37 -07:00
Kubernetes Prow Robot
e9eff7445e Merge pull request #128516 from gjkim42/group-container-statuses-by-its-sandboxid
Ensure that the pod has proper phase upon re-initialization
2025-03-20 11:24:31 -07:00
Kevin Torres
98e362c049 Revert "Pod level hugepage for cgroup when unset in container"
This reverts commit f0a14732371cb6f9521567b3fad564d8a8360bd7 and kuberuntime_container_linux_test.go change.
2025-03-20 17:54:40 +00:00