Commit Graph

4846 Commits

Author SHA1 Message Date
carlory
299ec97e6f run hack/update-vendor.sh
Signed-off-by: carlory <baofa.fan@daocloud.io>
2026-01-19 11:35:30 +08:00
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
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
7ca8d8154c Update codegen for validation
Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
2026-01-13 15:10:21 -08: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
Heba Elayoty
36f5750042 Move path-segment validation to pkg content
This is where all the scrubbed validation helpers are going.

Note: This does NOT check for  or too-long inputs, and changing it now
would be a breaking change.

Co-authored-by: Tim Hockin <thockin@google.com>
Signed-off-by: Heba Elayoty <heelayot@microsoft.com>
2026-01-13 13:27:41 -08:00
helayoty
f17edf7efb Restructure validation tests to check declarative coverage 2026-01-12 14:22:58 -08:00
helayoty
251832a33c Add union validation tags 2026-01-12 14:22:58 -08:00
helayoty
b75e665a7d Add +k8s:minimum validation tag 2026-01-12 14:22:57 -08:00
helayoty
ac8fe6b94e Add +k8s:format validation tags 2026-01-12 14:22:57 -08:00
helayoty
ac7b776537 Add +k8s:listType, +k8s:listMapKey, and +k8s:maxItems validation tags 2026-01-12 14:22:57 -08:00
helayoty
36ddf6c471 Add +k8s:required and +k8s:optional validation tags 2026-01-12 14:22:57 -08:00
helayoty
f4c839950e Wire up declarative validation for Workload API 2026-01-12 14:22:55 -08: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
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
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
yongruilin
016e821718 run codegen 2026-01-06 20:18:06 +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
b9d491f56e Merge pull request #134556 from carlory/fix-133160
lock the feature-gate VolumeAttributesClass to default (true)
2025-12-18 15:13:17 -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
carlory
f8e8e55f1d locked the feature-gate VolumeAttributesClass to default (true) and switch storage version from v1beta1 to v1
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-12-18 15:59:33 +08: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
Kubernetes Prow Robot
9e055e5945 Merge pull request #135355 from lalitc375/basic
Add k8s:optional on Device.Basic
2025-12-17 21:41:37 -08:00
Kubernetes Prow Robot
cc4bccf6a1 Merge pull request #134422 from jaehanbyun/ingressclass-default-marker
ingressclass: show (default) marker for default IngressClass
2025-12-17 16:26:11 -08:00
Kubernetes Prow Robot
e14cdadc5a Merge pull request #132807 from iholder101/feature/ImageVolumeWithDigest
[KEP-5365] Implement Image Volume with Digest
2025-12-17 16:25:17 -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
Maciej Szulik
fad6e977f7 Remove autoscaling v2beta1 and v2beta2
Signed-off-by: Maciej Szulik <soltysh@gmail.com>
2025-12-05 11:28:58 +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
carlory
be6028b926 cleanup csiNodeIDMaxLength
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-11-26 17:56:56 +08:00
kita456
950dfd612b test: add test for Ingress Update 2025-11-26 00:31:55 +09:00
kita456
ac90e6a809 Fix: Check defaultBackend in allowRelaxedServiceNameValidation
The allowRelaxedServiceNameValidation() function currently only checks
service names in spec.rules, but it should also check the service name
in spec.defaultBackend.

When an Ingress has a defaultBackend with a service name that is valid
per RFC 1123 but invalid per RFC 1035 (e.g., starting with a digit like
"1-default-service"), the function incorrectly returns false. This
prevents users from updating such Ingresses even though they were
validly created in the past.

This commit adds validation for spec.defaultBackend.service.name to
maintain backward compatibility for existing Ingresses.
2025-11-24 21:23:41 +09:00
Lalit Chauhan
79b414dc8f Add k8s:optional on Device.Basic 2025-11-19 19:51:32 +00:00
Itamar Holder
af66766bf5 Add auto-generated code and boilerplate
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
2c15d3b8e1 Add field wiping and validation logic
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
Itamar Holder
52b544e41d Add ImageRef field to VolumeMountStatus
Signed-off-by: Itamar Holder <iholder@redhat.com>
2025-11-18 14:14:41 +02:00
ndixita
edc3b77cf8 Kubelet changes and unit tests
Signed-off-by: ndixita <ndixita@google.com>
2025-11-11 18:19:07 +00: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
ndixita
b8777c3263 Generated files from API changes 2025-11-11 18:15:21 +00:00
ndixita
69c1fd72aa API changes for Pod Level IPPR related PodStatus fields 2025-11-11 18:15:17 +00:00