Commit graph

4359 commits

Author SHA1 Message Date
Patrick Ohly
1acfb8e8fc DRA: add DeviceTaintRule to v1 API 2026-07-06 20:15:27 +02:00
Yongrui Lin
4dabaebe45 api/testing: auto-discover declarative-validation GVKs in fuzz test
TestVersionedValidationByFuzzing swept a hand-maintained list of
group/versions that had a typo (network.k8s.io) and omitted several
groups (apps, policy, rbac, flowcontrol, scheduling). Replace it with a
sweep of the scheme for served GVKs that have declarative validation,
so new group/versions are covered automatically.

Skip extensions/v1beta1 centrally in VerifyVersionedValidationEquivalence
instead of via the per-call WithSkipGroupVersions option: it opts out of
declarative validation but shares an internal type with versions that do
not. Any other version missing declarative validation now fails the sweep
rather than being silently skipped.
2026-07-01 17:07:29 +00:00
kubernetes-prow[bot]
4ab2b0d316
Merge pull request #140049 from yongruilin/dv-testing-featuregate
validation-gen: Stop setting locked GA DeclarativeValidation gate in DV test harness
2026-06-30 23:32:23 +00:00
kubernetes-prow[bot]
d6bd294106
Merge pull request #139763 from pravk03/ndf-ga
Promote Node Declared Features to GA
2026-06-30 20:52:24 +00:00
Yongrui Lin
ae16b61ccf Stop setting locked GA DeclarativeValidation gate in DV tests
The gate is GA and locked to true, so explicitly setting it in the
equivalence test harness only emits a 'setting GA feature gate' warning
without changing behavior. Rely on its locked default instead.
2026-06-26 21:17:13 +00:00
Praveen Krishna
e81c394d30 Fix unit tests 2026-06-25 20:50:08 +00:00
kubernetes-prow[bot]
d23b431808
Merge pull request #139956 from jsafrane/selinuxmount-ga
Graduate SELinuxMount to GA
2026-06-25 17:48:27 +00:00
Lalit Chauhan
ae2801a7bf Change DV test util accordingly 2026-06-24 16:29:48 +00:00
Jan Safranek
8ad339756c
Graduate SELinuxMount to GA 2026-06-24 11:38:12 +02:00
Joe Betz
65adecb6ac
Switch to dropping init container annotations in PrepareForCreate/PrepareForUpdate 2026-06-23 18:59:53 -04:00
kubernetes-prow[bot]
16ccf9cc6f
Merge pull request #139856 from jpbetz/internal-conversion-pod-6
Internal conversions: PodSpec(6): Add PodIP to core.PodStatus
2026-06-23 17:12:19 +00:00
Joe Betz
ca554baf02
Add validation for DeprecatedServiceAccount 2026-06-23 10:08:12 -04:00
kubernetes-prow[bot]
dda2e89631
Merge pull request #139568 from lalitc375/configure-dv-part1a
Setup ObjectMeta test suite and wire it for AdmissionRegistration API group
2026-06-22 20:25:52 +00:00
Kubernetes Prow Robot
7ec808b85f
Merge pull request #139855 from jpbetz/internal-conversion-pod-5
Internal conversions: PodSpec(5): Add DeprecatedServiceAccount to core.PodSpec
2026-06-19 12:14:45 +05:30
Joe Betz
2c2ca73f9a
Move Pod host-namespace fields from PodSecurityContext to PodSpec 2026-06-18 22:40:57 -04:00
Kubernetes Prow Robot
72b0a1fcac
Merge pull request #139721 from sreeram-venkitesh/svenkitesh/cleanup-pod-lifecycle-sleep-action-feature-gates
Remove PodLifecycleSleepAction and PodLifecycleSleepActionAllowZero feature gates after GA-ed in v1.34
2026-06-18 23:48:50 +05:30
Aman Shrivastava
3b485f67e8 Skip extensions/v1beta1 in autoscaling Scale validation equivalence tests 2026-06-16 16:03:49 +05:30
Lalit Chauhan
8dc4ad1d5c Add valid test cases to ObjectMeta DV test suite
Address review feedback on PR #139568:

- Group all test cases by the ObjectMeta field they cover (the stray
  "finalizers: name too long" case previously sat at the bottom).
- Mirror the field grouping in the update suite. The update suite keeps
  only the baseline valid case; field-level boundaries are covered by
  the create suite and re-checking them on update adds no signal.
- Fix three errorlint warnings flagged by pull-kubernetes-linter-hints:
  switch fmt.Errorf("...: %v", err) to %w in the metadata-accessor
  failure paths of rest.ValidateCreate and validateCommonFields.
- Reword the extensions/v1beta1 skip comment in
  TestVersionedValidationByFuzzing: drop the stray trailing semicolon
  and explain that the group is unserved and does not carry DV.
2026-06-15 14:59:25 -07:00
Lalit Chauhan
755ccb3dae Add objectMeta validation in the path of DV testing 2026-06-15 21:22:30 +00:00
sreeram-venkitesh
21e8e23e7f Remove PodLifecycleSleepAction and PodLifecycleSleepActionAllowZero feature gates after GA-ed in 1.34 2026-06-14 15:58:21 +05:30
Yongrui Lin
e4cc8f8e9d testing: skip unserved extensions/v1beta1 in validation equivalence sweep
Add WithSkipGroupVersions and apply it to the NetworkPolicy and Scale tests,
whose internal types also register under the now-unvalidated extensions/v1beta1.
2026-06-11 06:35:35 +00:00
Kubernetes Prow Robot
e2ed47e2de
Merge pull request #134860 from danwinship/apiserver-service-proxy
Port service/proxy subresource from Endpoints to EndpointSlice
2026-06-11 03:10:50 +05:30
Dan Winship
6559d7ca54 Port service/proxy subresource from Endpoints to EndpointSlice
Co-authored-by: Jordan Liggitt <liggitt@google.com>
2026-06-10 15:10:38 -04:00
yliao
f8e92a5b5e fixed unit tests errors: cannot set feature gate DRAExtendedResource to false, feature is locked to true 2026-06-02 16:12:22 +00:00
Adrian Moisey
cbc8e77b2a
KEP-4427: Remove RelaxedDNSSearchValidation feature gate 2026-05-24 10:21:22 +02:00
dom4ha
88948acc38 Remove v1alpha2 API definitions
Update client-go lister and informer imports to v1alpha3
2026-05-22 12:50:19 +00:00
Yongrui Lin
44f6df54da Drop legacy hand-written validation subtest from pkg/api/testing
With DV always enforced, the "hand written validation" subtest (which
set DeclarativeValidation=off and emulated 1.35) now exercises the
same code path as "Beta disabled". Remove it along with the
MinEmulationVersion option, the WithMinEmulationVersion helper,
deDuplicateErrors, and the now-tautological imperative-vs-declarative
equivalence checks.
2026-05-20 18:54:07 +00:00
Yongrui Lin
16a17be014 pkg/api/testing: add VerifyUpdateValidationEquivalenceFunc
Variant of VerifyUpdateValidationEquivalence that accepts a validate
closure instead of a RESTUpdateStrategy, for callers that produce
handwritten and declarative validation errors directly.
2026-05-13 20:07:12 +00:00
Jordan Liggitt
ef2e578f14
switch tag Get("json") to Lookup("json") 2026-05-13 11:24:07 -04:00
Yongrui Lin
3577cbda2f pkg/api/testing: record observed rules during DV equivalence tests
VerifyValidationEquivalence's all-rules-enforced subtest now extracts
the GVK from the request context and forwards each error to
coverage.RecordObservedRules so AssertDeclarativeCoverage (in the
generated TestMain) can confirm every declared rule fired.
2026-05-09 18:59:16 +00:00
Lalit Chauhan
a1a5b10127 Address comments 2026-05-02 00:09:59 +00:00
Lalit Chauhan
68ad19102c Fix testing utils 2026-05-02 00:09:59 +00:00
Joe Betz
1fafa91da4
Consolidate DeclarativeValidationStrategy interface 2026-04-27 19:26:25 -04:00
Joe Betz
30c76c1879
Make declarative validation part of strategies 2026-04-24 12:00:41 -04:00
Kubernetes Prow Robot
b36864202b
Merge pull request #137755 from HirazawaUi/remove-SidecarContainers-feature-gate
Remove SidecarContainers feature gate
2026-04-23 08:16:45 +05:30
Junya Okabe
d371af5657
Fix ImageVolume validation for empty reference in Pod templates (#135989)
* fix validation

* fix(validation): use ratcheting validation for empty image volume reference
2026-04-23 03:19:30 +05:30
Kubernetes Prow Robot
cbd6fe51c9
Merge pull request #135336 from carlory/clean-AnyVolumeDataSource
[1.37] Remove feature gate AnyVolumeDataSource
2026-04-23 03:18:57 +05:30
Antoni Zawodny
59c9f75133 Add Workload-Aware Preemption fields to Workload and PodGroup APIs
Co-authored-by: Omar Sayed <omarsayed@google.com>
2026-03-24 09:03:50 +01:00
carlory
9a1b8cbe49 Remove feature gate AnyVolumeDataSource
Signed-off-by: carlory <baofa.fan@daocloud.io>
2026-03-23 16:38:07 +08:00
Nour
29601b8628
Add ResourcePoolStatusRequest API types and generated code
Introduce the ResourcePoolStatusRequest resource type in the
resource.k8s.io/v1alpha3 API group, gated behind the
DRAResourcePoolStatus feature gate. This includes external and internal
type definitions, protobuf/OpenAPI generated code, client-go typed
clients, informers, listers, apply configurations, deepcopy, defaults,
conversion, fuzzer, declarative validation tags, and API discovery
metadata.
2026-03-19 16:49:56 +02:00
HirazawaUi
964d79dd6e Remove SidecarContainers feature gate 2026-03-19 15:56:47 +08:00
Praveen Krishna
6b83eef7a2 Add pod Status and ResourceSlice API validation 2026-03-18 19:20:10 +00:00
Kubernetes Prow Robot
a1293fe6b1
Merge pull request #137836 from BenTheElder/fix-api
Fix API serialization compatibility regression in VolumeMountStatus
2026-03-18 08:23:46 +05:30
Benjamin Elder
f6d42d302b make VolumeMountStatus.VolumeStatus a pointer to preserve serialization compatibility 2026-03-17 17:37:23 -07:00
Kubernetes Prow Robot
547b17cc13
Merge pull request #137293 from adrianmoisey/adrian-kep-5707
KEP-5707: Deprecate Service.spec.externalIPs
2026-03-18 05:19:54 +05:30
Kubernetes Prow Robot
5f94c5bb7d
Merge pull request #137458 from natasha41575/tighten-initctr-validation
[InPlacePodVerticalScaling] validate initContainer restart policy against container resize policy
2026-03-18 00:47:39 +05:30
Natasha Sarkar
926e9fc8b2 validate container restart policy against container resize policy 2026-03-17 18:22:43 +00:00
Kubernetes Prow Robot
41451cb954
Merge pull request #137735 from tosi3k/drop-scheduling-v1alpha1
Remove v1alpha1 scheduling API from the API defaulting test
2026-03-16 22:23:54 +05:30
Antoni Zawodny
d879ee4761 Remove v1alpha1 scheduling API from the API defaulting test 2026-03-14 08:46:57 +01:00
Peter Hunt
539352eddd feature: promote ProcMountType to GA
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2026-03-13 12:27:16 -04:00