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

🌱 Deprecate unused MachineDeployment constants #5241

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

enxebre
Copy link
Member

@enxebre enxebre commented Sep 15, 2021

What this PR does / why we need it:
This was first added here #143 and it's never been used.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 15, 2021
@sbueringer
Copy link
Member

Do we have to deprecate the constants first and then drop them with v1beta1?

@enxebre
Copy link
Member Author

enxebre commented Sep 15, 2021

Do we have to deprecate the constants first and then drop them with v1beta1?

Not sure in this case it seems they have never been exposed by us in any way so they should have never been able to be consumed in any way but may be I'm missing something.

@vincepri
Copy link
Member

This is a breaking change, we should probably deprecate these first and remove them once we cut the next release

@enxebre
Copy link
Member Author

enxebre commented Sep 15, 2021

/retitle 🌱 Deprecate unused MachineDeployment constants

@k8s-ci-robot k8s-ci-robot changed the title 🌱 Remove unused MachineDeployment constants 🌱 Deprecate unused MachineDeployment constants Sep 15, 2021
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 15, 2021
@@ -44,17 +44,24 @@ const (
DefaultMachineDeploymentUniqueLabelKey = "machine-template-hash"

// FailedMSCreateReason is added in a machine deployment when it cannot create a new machine set.
// Deprecated
Copy link
Member

@sbueringer sbueringer Sep 15, 2021

Choose a reason for hiding this comment

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

Suggested change
// Deprecated
// Deprecated: This field will be removed in a next release.

nit

Looks like we usually write either use another field/func or this will be removed.

@enxebre
Copy link
Member Author

enxebre commented Sep 15, 2021

Updated to deprecate them. Just to get full context this is technically breaking change but there's no way this can break anyone right? or am I missing something?

 This was first added here kubernetes-sigs#143 and it's never been used.
Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 15, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

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 Sep 15, 2021
@vincepri
Copy link
Member

@enxebre They seem leftovers, it should be fine to remove them

@k8s-ci-robot k8s-ci-robot merged commit 42d2371 into kubernetes-sigs:master Sep 15, 2021
@k8s-ci-robot k8s-ci-robot added this to the v0.4 milestone Sep 15, 2021
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants