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

Bug 1752088: UPSTREAM: <carry>: openshift: Drop isDeleteAllowed func #72

Conversation

enxebre
Copy link
Member

@enxebre enxebre commented Sep 17, 2019

isDeleteAllowed prevented a machine backing a node where the machine controller is running from being deleted. The controller is meant to be a simple CRUD and for single master scenarios upper level tooling should provide smarter logic.
Supersedes #49 so introducing annotation can be considered later on.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 17, 2019
@enxebre enxebre changed the title UPSTREAM: <carry>: openshift: Drop isDeleteAllowed func Bug 1752088: UPSTREAM: <carry>: openshift: Drop isDeleteAllowed func Sep 17, 2019
@openshift-ci-robot
Copy link

@enxebre: This pull request references Bugzilla bug 1752088, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Bug 1752088: UPSTREAM: : openshift: Drop isDeleteAllowed func

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Sep 17, 2019
return true
}

if machine.Status.NodeRef.Name != r.nodeName {
Copy link

Choose a reason for hiding this comment

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

Do we need the nodeName field at all now? If not, let's remove it.

isDeleteAllowed prevented a machine backing a node where the machine controller is running from being deleted. The controller is meant to be a simple CRUD and for single master scenarios upper level tooling should provide smarter logic
@enxebre enxebre force-pushed the drop-isDeleteAllowed branch from 66d18cd to 1c4b6df Compare September 17, 2019 09:53
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 17, 2019
Copy link

@bison bison left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 17, 2019
@ingvagabund
Copy link
Member

/approve

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ingvagabund

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 17, 2019
@openshift-merge-robot openshift-merge-robot merged commit 655e2d6 into openshift:openshift-4.2-cluster-api-0.1.0 Sep 17, 2019
enxebre added a commit to enxebre/cluster-api-provider-aws-2 that referenced this pull request Sep 17, 2019
enxebre added a commit to enxebre/cluster-api-provider-gcp-1 that referenced this pull request Sep 17, 2019
enxebre added a commit to enxebre/cluster-api-provider-azure that referenced this pull request Sep 17, 2019
enxebre added a commit to enxebre/cluster-api-provider-openstack that referenced this pull request Sep 17, 2019
openshift-merge-robot added a commit to openshift/cluster-api-provider-aws that referenced this pull request Sep 17, 2019
Bug 1752088: UPSTREAM: <carry>: openshift: Revendor to bring openshift/cluster-api#72
openshift-merge-robot added a commit to openshift/cluster-api-provider-gcp that referenced this pull request Sep 17, 2019
Bug 1752088: UPSTREAM: <carry>: openshift: Revendor to bring openshift/cluster-api#72
openshift-merge-robot added a commit to openshift/cluster-api-provider-openstack that referenced this pull request Sep 17, 2019
Bug 1752088: UPSTREAM: <carry>: openshift: Revendor to bring openshift/cluster-api#72
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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants