Skip to content

KEP-4192: Remove obsolete fields from the API#5597

Merged
k8s-ci-robot merged 4 commits intokubernetes:masterfrom
stlaz:svm_kep_api
Oct 14, 2025
Merged

KEP-4192: Remove obsolete fields from the API#5597
k8s-ci-robot merged 4 commits intokubernetes:masterfrom
stlaz:svm_kep_api

Conversation

@stlaz
Copy link
Copy Markdown
Member

@stlaz stlaz commented Oct 1, 2025

  • One-line PR description: The API described in the KEP contained several fields that were unused by the implementation. These should not appear in the Beta version of the API.
  • Other comments: There are some minor changes to the KEP structure. You may want to go commit-by-commit to see the actual changes to the API, which are isolated in a separate commit.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 1, 2025
@k8s-ci-robot k8s-ci-robot requested review from deads2k and sttts October 1, 2025 13:47
@k8s-ci-robot k8s-ci-robot added kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 1, 2025
@stlaz
Copy link
Copy Markdown
Member Author

stlaz commented Oct 1, 2025

/cc @michaelasp

Comment thread keps/sig-api-machinery/4192-svm-in-tree/README.md Outdated
@michaelasp
Copy link
Copy Markdown
Contributor

Overall makes sense to me, I agree we don't need the last migrated resource at all since we can just use the RV.

@michaelasp
Copy link
Copy Markdown
Contributor

API changes overall make sense, mostly just pruning extra unnecessary fields we don't want to bring into beta.
/lgtm
/cc @jpbetz @enj

@k8s-ci-robot k8s-ci-robot requested review from enj and jpbetz October 3, 2025 16:54
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 3, 2025
Copy link
Copy Markdown
Member

@enj enj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass.

Comment thread keps/sig-api-machinery/4192-svm-in-tree/README.md Outdated
Comment thread keps/sig-api-machinery/4192-svm-in-tree/README.md
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 9, 2025
Copy link
Copy Markdown
Member

@enj enj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another pass.

Comment thread keps/sig-api-machinery/4192-svm-in-tree/README.md
// Standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh why did we drop the proto tags? Since this will be a built-in API, it will support proto...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are just inconvenient, I don't feel like they belong to the design. Since it's a built-in API, they should be implied - aren't they also autogenerated?

Comment thread keps/sig-api-machinery/4192-svm-in-tree/README.md Outdated
stlaz added 3 commits October 10, 2025 09:56
- move to metav1.Conditions
- remove the unused ContinueToken field
- rename LastMigratedResourceNameHash to LastMigratedResource

Signed-off-by: Stanislav Láznička <[email protected]>
Signed-off-by: Stanislav Láznička <[email protected]>
@deads2k
Copy link
Copy Markdown
Contributor

deads2k commented Oct 13, 2025

The result is still serialization compatible for the client requests making it easy to switch, so this lgtm.

/lgtm
/approve
/hold

holding in case @enj wants another look and for a squash

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 13, 2025
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 13, 2025
@enj enj added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Oct 14, 2025
@enj
Copy link
Copy Markdown
Member

enj commented Oct 14, 2025

/lgtm
/approve
/hold cancel

(labeled so the bot will squash since Standa is OOO)

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 14, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, enj, stlaz

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

The pull request process is described 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 merged commit acf3db3 into kubernetes:master Oct 14, 2025
4 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.35 milestone Oct 14, 2025
- `.spec.continueToken` - unused in the in-tree implementation
- `.status.lastMigratedResourceNameHash` - unused in the in-tree implementation
- **API modifications**
- `.spec.groupVersionResource` is replaced by `.spec.groupResource` and changes type
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking through this again to get kubernetes/kubernetes#134480 into reviewable, I don't think this is possible unless I'm misunderstanding. We need the version to know what resource to migrate, and it is used here https://github.com/kubernetes/kubernetes/pull/134480/files#diff-71ee1fc95d120f0800d32369be68174335815068609f09e5feafc0fb24e68260L42

Without it, we can't tell which version of a resource to migrate, I think we need to have groupVersionResource. cc @enj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants