Commit Graph

3775 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
f4ed7b3e28 Merge pull request #135951 from droach282/cronjob-schedule-dv
Adding declarative validations to CronJob Schedule field
2026-01-16 17:18:49 +05:30
Kubernetes Prow Robot
81383b249f Merge pull request #135164 from helayoty/helayoty/workload-declarative-validation
KEP-4671: Add Declarative Validation to Workload API
2026-01-16 12:13:11 +05:30
Heba Elayoty
5d7208e48f Add udpate and immutable tags on Workload API
Co-Author: Lalit Chauhan <lalitc375@gmail.com>

Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
2026-01-15 14:26:40 -08:00
Dan Roach
5b5cc2d498 Adding declarative validations to CronJob 2026-01-15 14:05:15 -07:00
Heba Elayoty
24c161307f Add tweak functions and enhance code readability
Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
2026-01-13 13:42:55 -08:00
Kubernetes Prow Robot
ce793bf4d6 Merge pull request #136077 from kannon92/sync-mutable-pod-mutable-scheduling-suspend-check
sync check in batch stategy to match AllowMutableSchedulingDirectives and AllowMutablePodResources
2026-01-14 01:11:42 +05:30
Kubernetes Prow Robot
d68d48073f Merge pull request #136112 from danwinship/network-1.36-cleanup
Drop TopologyAwareHints and ServiceTraficDistribution feature gates
2026-01-13 07:43:36 +05:30
helayoty
6a9f3a1509 Remove descriminated union
Signed-off-by: helayoty <heelayot@microsoft.com>
2026-01-12 14:22:58 -08:00
helayoty
f4c839950e Wire up declarative validation for Workload API 2026-01-12 14:22:55 -08:00
Kevin Hannon
986020d6bd sync check in batch stategy to match AllowMutableSchedulingDirectives and AllowMutablePodResources 2026-01-12 15:40:34 -05:00
Omer Aplatony
6cbb58349d HPA: Enable DV support for MaxReplicas (#135412)
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
2026-01-13 00:54:09 +05:30
Kubernetes Prow Robot
8f20f72526 Merge pull request #136079 from lalitc375/for-each
Re-apply "Migrate ResourceSlice map key validation to declarative validation"
2026-01-10 07:27:46 +05:30
Dan Winship
f278b47ecd Drop TopologyAwareHints and ServiceTraficDistribution feature gates 2026-01-09 12:42:34 -05:00
CLBRITTON2
6d69ee0937 Add declarative validation tests for EndpointSlice addressType supported values 2026-01-09 11:54:52 -05:00
CLBRITTON2
5ee4b49ebd Add declarative validation tests for EndpointSlice addressType immutability 2026-01-09 11:54:51 -05:00
CLBRITTON2
1ee5d304a9 Add declarative validation tests for EndpointSlice addressType required 2026-01-09 11:54:51 -05:00
chris britton
2c3516edb0 Add maxItems tag to Endpoint.Addresses, update tests 2026-01-09 11:54:51 -05:00
chris britton
5e4d5fe599 Mark Endpoint.Addresses required, add test cases 2026-01-09 11:54:51 -05:00
chris britton
494e27a059 Wire discovery group for declarative validation 2026-01-09 11:54:51 -05:00
Darshan Murthy
1c24a05ce1 wire network group for declarative validation and +k8s:required to IngressClassParametersReference.Name and IngressClassParametersReference.Kind (#134909) 2026-01-09 03:11:43 +05:30
Lalit Chauhan
2d233b6c31 Add a test case for invalid map to invalid map 2026-01-07 18:13:46 +00:00
Lalit Chauhan
13c801305a Migrate ResourceSlice map key validation to declarative validation
This commit migrates the validation of map keys for CounterSet.Counters and
DeviceCounterConsumption.Counters in the ResourceSlice API from handwritten
validation to declarative validation using +k8s:eachKey=+k8s:format=k8s-short-name.

This simplifies the handwritten validation logic and leverages the shared
declarative validation machinery.
2026-01-07 17:53:45 +00:00
Kubernetes Prow Robot
6e75905ed6 Merge pull request #135229 from lalitc375/origin-union
Add origins for the union validations errors
2025-12-18 19:24:31 -08:00
Kubernetes Prow Robot
3347801a59 Merge pull request #135046 from darshansreenivas/node-tag-migration-dtumkur
feat: wire node group for declarative validation
2025-12-18 13:29:16 -08:00
Lalit Chauhan
630a2a7c35 Add origins for the union validtions errors 2025-12-18 19:07:47 +00:00
Kubernetes Prow Robot
508074f023 Merge pull request #135615 from soltysh/drop_autoscaling_v2betaX
Drop autoscaling v2beta1 and v2beta2
2025-12-17 23:28:25 -08:00
Kubernetes Prow Robot
8fcb1fd4cf Merge pull request #135455 from carlory/csiNodeIDMaxLength
cleanup csiNodeIDMaxLength
2025-12-17 22:35:44 -08:00
darshansreenivas
ce6ea2f4b0 adding required and other test cases 2025-12-06 11:02:19 -08:00
Maciej Szulik
e347aa994b React to removing autoscaling v2beta1 and v2beta2
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-12-05 11:59:30 +01:00
darshansreenivas
897adb7b48 DRA: adding tag to node module
move DRA to a update method

fix boilerplate code

apply node normalize code at fuzz logic

adding normalization fix

fix nit
2025-12-04 23:03:21 -08:00
Antonio Ojea
51f614a156 ipallocator: handle errors correctly
The ipallocator was blindly assuming that all errors are retryable, that
causes that the allocator tries to exhaust all the possibilities to
allocate an IP address.

If the error is not retryable this means the allocator will generate as
many API calls as existing available IPs are in the allocator, causing
CPU exhaustion since this requests are coming from inside the apiserver.

In addition to handle the error correctly, this patch also interpret the
error to return the right status code depending on the error type.

Co-authored-by: carlory <baofa.fan@daocloud.io>
2025-12-03 10:39:57 +00:00
carlory
be6028b926 cleanup csiNodeIDMaxLength
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-11-26 17:56:56 +08:00
ndixita
84776abaff Modifying validation logic and pod strategy for PodResize to accommodate for Pod Level Resources resize 2025-11-11 18:15:22 +00:00
Morten Torkildsen
93fc7422ee DRA: Update validation for Partitionable Devices 2025-11-06 21:13:33 +00:00
Kubernetes Prow Robot
41fd1b51f6 Merge pull request #134520 from sunya-ch/add-share-id-to-plugin-device
[DRA] Add ShareID to kubelet plugin API
2025-11-06 12:43:00 -08:00
Kubernetes Prow Robot
43cd2d207d Merge pull request #134615 from sunya-ch/consumable-capacity-testing-update
DRA: ConsumableCapacity update allocating and registry test cases
2025-11-06 08:29:01 -08:00
Maciej Skoczeń
9639274676 api: Create Workload API 2025-11-06 09:36:43 +00:00
Kubernetes Prow Robot
b869afe68d Merge pull request #133389 from pravk03/node-capabilities
Introduce node declared features framework
2025-11-06 01:32:54 -08:00
Praveen Krishna
c30b75b008 feat: Implement node declared features reporting and validation.
* Reports node declared features in Node.Status.DeclaredFeatures.
* Add kubelet admission handler to check pod required features and match with node declared features on pod creation.
* Checks node declared features on pod updates and emits events if the node does not
  satisfy the pod's feature requirements.
* Adds API validation for node object.
2025-11-06 00:51:39 +00:00
Sunyanan Choochotkaew
801de96635 DRA: ConsumableCapacity update allocating and registry test cases
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
2025-11-06 09:19:19 +09:00
Michał Woźniak
5a7c90fb76 Allow mutable scheduling directives for suspended Jobs 2025-11-05 19:37:33 +00:00
Kubernetes Prow Robot
36622966a8 Merge pull request #132441 from kannon92/poc-job-relax-pod-template
[KEP-5440]: MutablePodResourcesForSuspendedJobs
2025-11-05 11:26:50 -08:00
Sunyanan Choochotkaew
eea7c1403f [DRA] Add ShareID to kubelet plugin API
Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
2025-11-06 03:28:35 +09:00
Kevin Hannon
7db5311952 feat: Add MutablePodResourcesForSuspendedJobs feature gate
- Add feature gate to control mutable pod resources for suspended jobs
- Implement validatePodResourceUpdatesOnly function to allow only container resource updates
- Allow resource updates for suspended jobs regardless of whether they have started
- Add comprehensive unit and integration tests for all scenarios including started-then-suspended
- Ensure backward compatibility when feature gate is disabled

This enables users to update container resources on suspended jobs, including jobs that
have previously started and been suspended, while maintaining immutability for all other
pod template fields.
2025-11-05 10:38:05 -05:00
Kubernetes Prow Robot
c329e64929 Merge pull request #134962 from sunya-ch/fix-resourceclaim-strategy-test-err
[DRA] Fix unexpected errors on ResourceClaim strategy update
2025-11-05 00:44:59 -08:00
Lalit Chauhan
0aea256ef9 revert of 8f0a6583ca 2025-11-05 00:13:26 +00:00
Sunyanan Choochotkaew
4acafd9245 [DRA] Fix unexpected errors on ResourceClaim strategy update
- Fix setting distinctAttribute=nil when DRAConsumableCapacity is disabled
- Add must have no error check when no error expected in strategy test
- Update test case that causes unexpected errors

Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
2025-11-05 08:45:51 +09:00
Kubernetes Prow Robot
c1a6a3ca71 Merge pull request #134152 from pohly/dra-device-taints-1.35
DRA: device taints: new ResourceSlice API, new features
2025-11-04 15:32:07 -08:00
Kubernetes Prow Robot
22151d719b Merge pull request #135079 from aaron-prindle/dra-shortcircuit-maxitems
feat: update DRA to short-circuit on maxSize checks, add a declarative validation test related to this case
2025-11-04 12:52:18 -08:00
Kubernetes Prow Robot
a058cf788a Merge pull request #134624 from yt2985/podcertificates-beta
Promote Pod Certificates feature to beta
2025-11-04 11:42:12 -08:00