-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove runtime.VersionedObject from universal apimachinery #70734
Remove runtime.VersionedObject from universal apimachinery #70734
Conversation
60583ec
to
a89c40c
Compare
My understanding is that because this is in staging, this is possibly part of a public API. So I don't think we can be sure that However, I agree with you that it certainly looks like it isn't something that would be used by production code (it feels like a debug/diagnostics tool) |
@justinsb yeah i suppose thats the exact reason why this definition has been kept in k/k for several releases. but it definitely makes the decoders (json/protobuf/versioning) difficult to understand (which is the motivation of this pull 😅). @kubernetes/api-approvers could u shed some light on whether to prune this from k/k? |
cc @mbohlool |
/hold I'd like time to investigate this one. |
I'm really not sure. I'm not sure I'd take the risk at this point in the release. @smarterclayton @lavalamp think we're just falling back to a different path? I don't remember history here. |
This was for generic Cli commands that needed the internal version. There was some discussion about using it in the rest storage, but I don’t think we ever did. I’m favor of removing this but not in 1.13. Have you done a GitHub sweep to identify possible callers? |
didnt find any go project using |
This is a confusing type and if we can delete it, we should, esp. while we don't offer compatibility guarantees for the apimachinery library. I agree with the others that we should wait until after the release though. |
the question again for |
that's not as clear. at one time, that was required for encoding of objects containing runtime.Object fields to convert them to runtime.RawExtension See discussion in the PR where it was added: #26044 (comment) |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
/uncc |
can this be revived? I'd like to simplify as much here as we can, and I haven't seen any evidence of use here |
sure reviving 👨🏼🔬 |
I don't seem immediate issues. I forgot about this, sorry. /hold cancel |
a89c40c
to
077889d
Compare
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
/retest |
/test all |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, yue9944882 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@yue9944882: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest Review the full test history for this PR. Silence the bot with an |
we have a lot of legacy code supporting
runtime.VersionedObject
while actually it's completely unused for several releases. removing this makes the decoder much cleaner./sig api-machinery
/kind cleanup
Does this PR introduce a user-facing change?: