Commit Graph

4889 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
7d70fe491d Merge pull request #135775 from bitoku/no-noexec
Update OCI image volume type description to remove "noexec" attribute
2026-02-27 01:07:56 +05:30
Ayato Tokubi
aa1e24659e Update OCI image volume type description to remove "noexec" attribute
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
2026-02-26 18:32:40 +00:00
Kubernetes Prow Robot
20c59228e2 Merge pull request #137136 from kfess/bugfix/container-restart-policy-err-message
fix ContainerRestartRules error message
2026-02-26 23:50:26 +05:30
Lalit Chauhan
a11feac678 validation-gen: Fix missing MarkAlpha/MarkBeta for nested validation tags
The validation code generator was failing to propagate the
StabilityLevel from the parent context when evaluating composite tags
like `+k8s:item`, `+k8s:each`, and `+k8s:subfield`. As a result, inner
validations like `+k8s:zeroOrOneOfMember` combined with `+k8s:alpha`
were not emitting `.MarkAlpha()` in the generated code.

This fix ensures the `StabilityLevel` is copied to the `subContext`
during evaluation, and adds a test case for list items using
`+k8s:alpha=+k8s:item(...)=+k8s:zeroOrOneOfMember`.

Generated code is updated accordingly.
2026-02-25 17:48:09 +00:00
Your Name
701db6b6a6 validation-gen: Fix all stable api violations by prefixing +k8s:alpha(since:"1.36") and exclude output_tests from linting 2026-02-25 00:50:31 +00:00
Your Name
7d08854616 Fix lint errors 2026-02-25 00:06:19 +00:00
Kubernetes Prow Robot
87257b7e44 Merge pull request #136630 from lalitc375/dv-testing-utils
validation: add FromImperative field to track source of validation errors
2026-02-25 05:03:33 +05:30
Kubernetes Prow Robot
6457593fdf Merge pull request #136215 from darthsuburbus/dec-validation-ipaddress
ipaddress: migrate parentref validation to DV
2026-02-25 03:05:35 +05:30
Kubernetes Prow Robot
862b0673c2 Merge pull request #136959 from natasha41575/allocated_status_cleanup
remove the InPlacePodVerticalScalingAllocatedStatus feature gate
2026-02-25 00:47:35 +05:30
Your Name
3b5298f0a4 Fix resource claim DV 2026-02-24 18:36:47 +00:00
kita456
30ce233ff0 fix container restart rule error message 2026-02-24 19:33:21 +09:00
Kubernetes Prow Robot
4179ebc3d6 Merge pull request #136822 from itzPranshul/storage-class
Validationo-gen: Migrate handwritten validation to declarative validation in StorageClass
2026-02-24 11:05:34 +05:30
Abhishek Srivastava
ed083ab6b7 add declarative validation tests for ipaddress 2026-02-22 06:53:56 -08:00
Abhishek Srivastava
864c54f658 add validation fields and generated code for v1 and v1beta1 2026-02-18 21:41:09 -08:00
Lalit Chauhan
b7c4f21d41 promote MutatingAdmissionPolicy to v1: api wiring and validation
- Register v1 MutatingAdmissionPolicy and Binding in apiserver storage.
- Add defaults and validation for v1 types.
- Update storage version hash data.
- Add API testdata.
2026-02-18 17:51:43 +00:00
Lalit Chauhan
5505c010fd promote MutatingAdmissionPolicy to v1: add types and generated code 2026-02-18 17:51:38 +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
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
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
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
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
09681e23a2 feat: migrate HorizontalPodAutoscalerSpec.MinReplicas to declarative validation 2026-02-12 21:23:41 +00:00
Natasha Sarkar
d25c688bf7 remove the InPlacePodVerticalScalingAllocatedStatus feature gate 2026-02-12 17:20:10 +00: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
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
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
pranshul gupta
1d6f9ddcfd declarative validation mingration- addressing feedback 2026-02-11 16:35:10 +05:30
Natasha Sarkar
d5dabfcd65 remove Pod Generation feature gate from field descriptions 2026-02-10 21:33:09 +00:00
pranshul gupta
eab10eeb42 migrate StorageClass.VolumeBindingMode to declarative validation 2026-02-07 20:44:49 +05:30
pranshul gupta
5cd3d3f2d7 migrate StorageClass.ReclaimPolicy to declarative validation 2026-02-07 20:35:21 +05:30
pranshul gupta
c1f538118d migrate StorageClass.Parameters to declarative validation 2026-02-07 20:20:44 +05:30
pranshul gupta
e819650d4c migrate StorageClass.Provisioner to declarative validation 2026-02-07 20:07:57 +05:30
Taahir Ahmed
c76efb3a14 Pod Certificates: make update 2026-02-05 21:04:54 -08:00
Taahir Ahmed
26a78bab27 Pod Certificates: Add StubPKCS10Request; migrate in-tree usages to it 2026-02-05 16:27:54 -08:00
Tim Allclair
e8b7c959c9 Use quantity.Sign() instead of quantity.Cmp(zeroQuantity) 2026-02-04 10:38:23 -08:00
Jordan Liggitt
af36d192c3 RBAC helper: fix data race
The verbs parameter slice might be shared between different rule instances and
gets sorted (= written), so we have to make a copy or (even better) also
de-duplicate as in pkg/apis/rbac/helpers.go.

More specifically, plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go
shares the Read and ReadWrite slices, causing:

    WARNING: DATA RACE
    Read at 0x000008e5e5b0 by goroutine 124:
      slices.insertionSortOrdered[go.shape.string]()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.6.linux-amd64/src/slices/zsortordered.go:14 +0x126
      slices.pdqsortOrdered[go.shape.string]()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.6.linux-amd64/src/slices/zsortordered.go:75 +0x6c4
      slices.Sort[go.shape.[]string,go.shape.string]()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.6.linux-amd64/src/slices/sort.go:18 +0x64
      sort.Strings()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.6.linux-amd64/src/sort/sort.go:181 +0xe
      k8s.io/kubernetes/pkg/apis/rbac/v1.(*PolicyRuleBuilder).Rule()
          /home/prow/go/src/k8s.io/kubernetes/pkg/apis/rbac/v1/helpers.go:98 +0x2c9
      k8s.io/kubernetes/pkg/apis/rbac/v1.(*PolicyRuleBuilder).RuleOrDie()
          /home/prow/go/src/k8s.io/kubernetes/pkg/apis/rbac/v1/helpers.go:65 +0x2f44
      k8s.io/kubernetes/plugin/pkg/auth/authorizer/rbac/bootstrappolicy.ClusterRoles()
          /home/prow/go/src/k8s.io/kubernetes/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go:404 +0x2c13
    ...
    Previous write at 0x000008e5e5b0 by goroutine 123:
      slices.insertionSortOrdered[go.shape.string]()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.6.linux-amd64/src/slices/zsortordered.go:15 +0x2f9
      slices.pdqsortOrdered[go.shape.string]()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.6.linux-amd64/src/slices/zsortordered.go:75 +0x6c4
      slices.Sort[go.shape.[]string,go.shape.string]()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.6.linux-amd64/src/slices/sort.go:18 +0x64
      sort.Strings()
          /home/prow/go/src/k8s.io/kubernetes/_output/local/go/cache/mod/golang.org/toolchain@v0.0.1-go1.25.6.linux-amd64/src/sort/sort.go:181 +0xe
      k8s.io/kubernetes/pkg/apis/rbac/v1.(*PolicyRuleBuilder).Rule()
          /home/prow/go/src/k8s.io/kubernetes/pkg/apis/rbac/v1/helpers.go:98 +0x2c9
      k8s.io/kubernetes/pkg/apis/rbac/v1.(*PolicyRuleBuilder).RuleOrDie()
          /home/prow/go/src/k8s.io/kubernetes/pkg/apis/rbac/v1/helpers.go:65 +0x2f44
      k8s.io/kubernetes/plugin/pkg/auth/authorizer/rbac/bootstrappolicy.ClusterRoles()
          /home/prow/go/src/k8s.io/kubernetes/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go:404 +0x2c13

Seen in test/integration/apiserver/oidc.
2026-02-03 15:46:33 +01:00
Anish Ramasekar
d6d215821a Mark CSIServiceAccountTokenSecrets feature gate as GA
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2026-01-28 14:41:34 -06:00
darshansreenivas
0b635116f1 feat(admissionregistration): enable declarative validation wiring and require ValidationActions 2026-01-24 03:46:24 -08:00
Darshan Murthy
b4947a5891 feat(storage): enable validation-gen + DV wiring for storage.k8s.io (#135438)
* Enable DV coverage for VolumeAttachmentSpec.Attacher validation

update code-gen

* addressing PR comments
2026-01-24 14:29:26 +05:30
Kubernetes Prow Robot
5eb7087ccb Merge pull request #135761 from darshansreenivas/admissionregistratio_k8s_io_policy_name
feat: wire admissionregistration group for declarative validation and +k8s:required to ValidatingAdmissionPolicyBindingSpec.PolicyName
2026-01-24 10:33:31 +05:30
darshansreenivas
04ea1eabff feat(admissionregistration): wire group for declarative validation and require PolicyName 2026-01-22 11:19:22 -08:00
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