Skip to content

Update swagger v2 test data from Kubernetes v1.8 to v1.35#581

Open
bryantbiggs wants to merge 1 commit intokubernetes:masterfrom
bryantbiggs:update-proto-testdata-to-k8s-1.35
Open

Update swagger v2 test data from Kubernetes v1.8 to v1.35#581
bryantbiggs wants to merge 1 commit intokubernetes:masterfrom
bryantbiggs:update-proto-testdata-to-k8s-1.35

Conversation

@bryantbiggs
Copy link
Copy Markdown
Contributor

@bryantbiggs bryantbiggs commented Mar 17, 2026

Summary

  • Replace swagger v2 test fixtures (swagger.json, swagger_next.json) with trimmed extracts from the Kubernetes v1.35.2 OpenAPI spec
  • Update all test references from deprecated apps/v1beta1 to GA apps/v1
  • Fix Container required-field assertions (image is no longer required)
  • Add selector to Deployment validation test (required in apps/v1)
  • Update DeploymentStatus.conditions extension assertions to include x-kubernetes-list-map-keys and x-kubernetes-list-type

OpenAPI v3 test data (v1.24) is left unchanged pending a fix for the proto v3 parser's lack of allOf-wrapped $ref support (see #477 #583 and #584).

Resolves feedback from #579 (comment)

@k8s-ci-robot k8s-ci-robot requested a review from apelisse March 17, 2026 21:27
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bryantbiggs
Once this PR has been reviewed and has the lgtm label, please assign apelisse for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from seans3 March 17, 2026 21:27
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Mar 17, 2026
@bryantbiggs bryantbiggs marked this pull request as draft March 17, 2026 21:28
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 17, 2026
Replace swagger v2 test fixtures (swagger.json, swagger_next.json) with
trimmed extracts from the Kubernetes v1.35.2 OpenAPI spec.

- Update all test references from deprecated apps/v1beta1 to GA apps/v1
- Fix Container required-field assertions (only 'name' is required in
  modern Kubernetes, not 'name' and 'image')
- Add selector to Deployment validation test (required in apps/v1)
- Update DeploymentStatus.conditions extension assertions to include
  x-kubernetes-list-map-keys and x-kubernetes-list-type

OpenAPI v3 test data (v1.24) is left unchanged pending a fix for the
proto v3 parser's lack of allOf-wrapped $ref support (see kubernetes#477).
@bryantbiggs bryantbiggs force-pushed the update-proto-testdata-to-k8s-1.35 branch from 3ac6c7e to ce3de3e Compare March 17, 2026 21:38
@bryantbiggs bryantbiggs changed the title Update proto test data from Kubernetes v1.8/v1.24 to v1.35 Update swagger v2 test data from Kubernetes v1.8 to v1.35 Mar 17, 2026
@bryantbiggs bryantbiggs marked this pull request as ready for review March 17, 2026 21:45
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 17, 2026
@k8s-ci-robot k8s-ci-robot requested review from Jefftree and sttts March 17, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants