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 deprecated field and annotation #44900

Closed
wants to merge 9 commits into from

Conversation

thockin
Copy link
Member

@thockin thockin commented Apr 25, 2017

Remove some long-deprecated or expired fields and annotations.

Admit that the implied emptyDir behaviotr probably will never go away.

Remove the pod.spec.DeprecatedServiceAccount field, which was deprecated before v1.

Remove the service.beta.kubernetes.io/load-balancer-source-ranges annotation, which was replaced with service.spec.loadBalancerSourceRanges about a year ago.

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: thockin

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 25, 2017
@k8s-github-robot k8s-github-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Apr 25, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@thockin thockin changed the title Remove deprecated Remove deprecated field and annotation Apr 25, 2017
// Deprecated: Use serviceAccountName instead.
// +k8s:conversion-gen=false
// +optional
DeprecatedServiceAccount string `json:"serviceAccount,omitempty" protobuf:"bytes,9,opt,name=serviceAccount"`
Copy link
Member

@liggitt liggitt Apr 25, 2017

Choose a reason for hiding this comment

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

service account field LGTM, do we have a convention for marking dead protobuf ids we cannot use (or are we just counting on review to prevent someone from trying to fill in a gap left by a removed field in the future)?

Copy link
Member Author

Choose a reason for hiding this comment

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

will add a comment

@thockin
Copy link
Member Author

thockin commented Apr 25, 2017 via email

@liggitt
Copy link
Member

liggitt commented Apr 25, 2017

need to sweep examples/docs (at least in-tree) for use of serviceAccount: ...

@liggitt
Copy link
Member

liggitt commented Apr 25, 2017

I wondered that too. Google convention is to have a comment at the end of the struct, but this is all auto-gen.

Never discount an enterprising (or confused) developer that manually assigns a protobuf id, not knowing the generation would do it for them.

Do we need to leave the field here forever as a placeholder?

Not live, but maybe commented out in a "removed fields" section? @smarterclayton, thoughts?

@justinsb
Copy link
Member

justinsb commented Apr 25, 2017

Have we deprecated service.beta.kubernetes.io/load-balancer-source-ranges? I looked around, and on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying Beware of the Leopard, I did find a note that said we intended to deprecate it, which will be printed if people use kubectl I believe, but that was in Dec 2016.

Also, it's a high-risk change: a service that was locked down will suddenly be opened up to everyone I believe.

I'm not even sure where we do actually deprecate things - release notes?

@smarterclayton
Copy link
Contributor

smarterclayton commented Apr 26, 2017 via email

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 26, 2017
@k8s-github-robot k8s-github-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 5, 2017
@liggitt
Copy link
Member

liggitt commented Jun 7, 2017

would be good to get this in at the beginning of 1.8

@mengqiy
Copy link
Member

mengqiy commented Jun 14, 2017

fixes: kubernetes/kubectl#23

@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 19, 2017
@thockin thockin force-pushed the remove-deprecated branch 3 times, most recently from 03ed764 to 5347762 Compare August 20, 2017 18:54
@thockin thockin added the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Aug 20, 2017
@thockin thockin force-pushed the remove-deprecated branch 2 times, most recently from 3e8298b to 948d09b Compare August 20, 2017 22:13
@k8s-github-robot k8s-github-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 21, 2017
@thockin thockin force-pushed the remove-deprecated branch 3 times, most recently from 4f87776 to 76363d9 Compare August 22, 2017 00:44
@k8s-github-robot k8s-github-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 22, 2017
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Aug 22, 2017

@thockin: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
Jenkins Bazel Build aaf46dd link @k8s-bot bazel test this
Jenkins unit/integration aaf46dd link @k8s-bot unit test this
Jenkins verification aaf46dd link @k8s-bot verify test this
Jenkins kops AWS e2e aaf46dd link @k8s-bot kops aws e2e test this

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.

@thockin
Copy link
Member Author

thockin commented Aug 22, 2017

/retest

@thockin
Copy link
Member Author

thockin commented Aug 22, 2017

This is ready for review, but many of the earlier commits are already out as PRs of their own.

@liggitt
Copy link
Member

liggitt commented Aug 23, 2017

removal of the field still LGTM, quick search of "?serviceAccount"?: still shows in-tree usage and generated files containing the old field name though

@k8s-github-robot k8s-github-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 23, 2017
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 30, 2017
@k8s-github-robot
Copy link

@thockin PR needs rebase

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 30, 2017
@k8s-github-robot
Copy link

This PR hasn't been active in 90 days. Closing this PR. Please reopen if you would like to work towards merging this change, if/when the PR is ready for the next round of review.

cc @freehan @liggitt @thockin

You can add 'keep-open' label to prevent this from happening again, or add a comment to keep it open another 90 days

@thockin thockin deleted the remove-deprecated branch August 14, 2019 17:43
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. do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants