-
Notifications
You must be signed in to change notification settings - Fork 122
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
Delete Nodes by NodeRef and compare node and machine names when getting a Hetzner node #813
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubermatic-bot
added
do-not-merge/hold
Indicates that a PR should not merge because someone has issued a /hold command.
dco-signoff: yes
Denotes that all commits in the pull request have the valid DCO signoff message.
do-not-merge/release-note-label-needed
Indicates that a PR should not merge because it's missing one of the release note labels.
sig/cluster-management
Denotes a PR or issue as being assigned to SIG Cluster Management.
approved
Indicates a PR has been approved by an approver from all required OWNERS files.
size/S
Denotes a PR that changes 10-29 lines, ignoring generated files.
labels
Aug 23, 2020
xmudrii
changed the title
RFC: Delete Nodes by NodeRef
[WIP] RFC: Delete Nodes by NodeRef
Aug 23, 2020
kubermatic-bot
added
the
do-not-merge/work-in-progress
Indicates that a PR should not merge because it is a work in progress.
label
Aug 23, 2020
xmudrii
force-pushed
the
noderef-deletion
branch
from
August 24, 2020 07:59
f3b3837
to
7c1fd61
Compare
kubermatic-bot
added
size/M
Denotes a PR that changes 30-99 lines, ignoring generated files.
release-note
Denotes a PR that will be considered when it comes time to generate release notes.
and removed
size/S
Denotes a PR that changes 10-29 lines, ignoring generated files.
do-not-merge/release-note-label-needed
Indicates that a PR should not merge because it's missing one of the release note labels.
labels
Aug 24, 2020
xmudrii
force-pushed
the
noderef-deletion
branch
from
August 24, 2020 12:26
7c1fd61
to
04c2128
Compare
xmudrii
changed the title
[WIP] RFC: Delete Nodes by NodeRef
RFC: Delete Nodes by NodeRef and compare node and machine names when getting a Hetzner node
Aug 24, 2020
kubermatic-bot
removed
the
do-not-merge/work-in-progress
Indicates that a PR should not merge because it is a work in progress.
label
Aug 24, 2020
xmudrii
force-pushed
the
noderef-deletion
branch
from
August 24, 2020 12:35
04c2128
to
a4be491
Compare
/retest |
irozzo-1A
reviewed
Aug 25, 2020
irozzo-1A
reviewed
Aug 25, 2020
kubermatic-bot
added
size/L
Denotes a PR that changes 100-499 lines, ignoring generated files.
and removed
size/M
Denotes a PR that changes 30-99 lines, ignoring generated files.
labels
Aug 26, 2020
xmudrii
commented
Aug 26, 2020
xmudrii
changed the title
RFC: Delete Nodes by NodeRef and compare node and machine names when getting a Hetzner node
Delete Nodes by NodeRef and compare node and machine names when getting a Hetzner node
Aug 26, 2020
irozzo-1A
reviewed
Aug 26, 2020
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: irozzo-1A, xmudrii 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 |
xmudrii
force-pushed
the
noderef-deletion
branch
from
August 26, 2020 13:25
24f16bb
to
0cdfef3
Compare
/lgtm |
LGTM label has been added. Git tree hash: 875072471baa1beb0bda5c2628e99d3abcea4841
|
/hold cancel |
kubermatic-bot
removed
the
do-not-merge/hold
Indicates that a PR should not merge because someone has issued a /hold command.
label
Aug 27, 2020
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.
dco-signoff: yes
Denotes that all commits in the pull request have the valid DCO signoff message.
lgtm
Indicates that a PR is ready to be merged.
release-note
Denotes a PR that will be considered when it comes time to generate release notes.
sig/cluster-management
Denotes a PR or issue as being assigned to SIG Cluster Management.
size/L
Denotes a PR that changes 100-499 lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
This PR attempts to fix the bug which occurs when a Machine is rolled-out and the new Machine has the same IP addresses as the old one. It could happen that the machine-controller sets the NodeOwner label on the old Node object to the UID of the new Machine. That can break the logic for removing the old Node object, as it depends on the NodeOwner label having the UID of the Machine that's being deleted.
There are two fixes:
getNode
function instead of IP addressesOptional Release Note: