Skip to content
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

Conversation

yue9944882
Copy link
Member

we have a lot of legacy code supportingruntime.VersionedObjectwhile 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?:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API labels Nov 7, 2018
@yue9944882 yue9944882 force-pushed the chore/prune-runtime-versioned-objects branch from 60583ec to a89c40c Compare November 7, 2018 09:45
@justinsb
Copy link
Member

justinsb commented Nov 7, 2018

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 VersionedObjects is unused just because it isn't used in k/k.

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)

@yue9944882
Copy link
Member Author

So I don't think we can be sure that VersionedObjects is unused just because it isn't used in k/k.

@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?

@bgrant0607
Copy link
Member

@lavalamp or @deads2k probably know

@roycaihw
Copy link
Member

roycaihw commented Nov 8, 2018

cc @mbohlool

@deads2k
Copy link
Contributor

deads2k commented Nov 8, 2018

/hold

I'd like time to investigate this one.

@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 Nov 8, 2018
@deads2k
Copy link
Contributor

deads2k commented Nov 13, 2018

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.

@smarterclayton
Copy link
Contributor

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?

@yue9944882
Copy link
Member Author

Have you done a GitHub sweep to identify possible callers?

didnt find any go project using runtime.VersionedObject. mystery huh.🤔

@lavalamp
Copy link
Member

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.

@yue9944882
Copy link
Member Author

the question again for runtime.NestedObjectEncoder. wdyt if we prune that together?

@liggitt
Copy link
Member

liggitt commented Nov 28, 2018

the question again for runtime.NestedObjectEncoder. wdyt if we prune that together?

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)

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 26, 2019
@yue9944882
Copy link
Member Author

/remove-lifecycle stale
/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 27, 2019
@ncdc
Copy link
Member

ncdc commented Jul 23, 2019

/uncc

@k8s-ci-robot k8s-ci-robot removed the request for review from ncdc July 23, 2019 12:59
@liggitt
Copy link
Member

liggitt commented Aug 13, 2019

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

@yue9944882
Copy link
Member Author

sure reviving 👨🏼‍🔬

@deads2k
Copy link
Contributor

deads2k commented Aug 13, 2019

I don't seem immediate issues. I forgot about this, sorry.

/hold cancel

@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 Aug 13, 2019
@yue9944882 yue9944882 force-pushed the chore/prune-runtime-versioned-objects branch from a89c40c to 077889d Compare August 13, 2019 15:10
@fejta-bot
Copy link

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.

@liggitt
Copy link
Member

liggitt commented Oct 3, 2019

/retest

@liggitt
Copy link
Member

liggitt commented Oct 3, 2019

/test all

@liggitt
Copy link
Member

liggitt commented Oct 3, 2019

/lgtm
/approve
/priority backlog

@k8s-ci-robot k8s-ci-robot added priority/backlog Higher priority than priority/awaiting-more-evidence. lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Oct 3, 2019
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 3, 2019
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Oct 3, 2019

@yue9944882: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws a89c40cff8a6902a6b9271626de71fb6c4e9756f link /test pull-kubernetes-e2e-kops-aws

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.

@fejta-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs (send feedback to fejta).

Review the full test history for this PR.

Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

@k8s-ci-robot k8s-ci-robot merged commit 222b828 into kubernetes:master Oct 3, 2019
@k8s-ci-robot k8s-ci-robot added this to the v1.17 milestone Oct 3, 2019
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/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note-none Denotes a PR that doesn't merit a release note. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet