-
Notifications
You must be signed in to change notification settings - Fork 131
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
[release/v1.56] Allow external CCMs to handle node objects before MC #1652
[release/v1.56] Allow external CCMs to handle node objects before MC #1652
Conversation
Signed-off-by: Marcin Franczyk <marcin0franczyk@gmail.com>
Signed-off-by: Marcin Franczyk <marcin0franczyk@gmail.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mfranczy 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 |
/test pull-machine-controller-e2e-kubevirt |
/retest |
Otherwise we have a race condition between MC and CCM. Both try to check status of instances at cloud provider. If MC reconciles instances first then kubelet will reuse the old node object which is problematic in case of IP change. Signed-off-by: Marcin Franczyk <marcin0franczyk@gmail.com>
Signed-off-by: Marcin Franczyk <marcin0franczyk@gmail.com>
Signed-off-by: Marcin Franczyk <marcin0franczyk@gmail.com>
9723307
to
8defb7f
Compare
/test pull-machine-controller-e2e-gce |
LGTM label has been added. Git tree hash: b1fcc5a94ebdd8353b55d9d2a4d8fd7bab71b0c6
|
Manual backport of #1645
What this PR does / why we need it:
Allow external CCMs to handle failing node objects before MC takes any action.
It prevents race condition between MC and CCM.
The PR introduces a
handleNodeFailuresWithExternalCCM
function that:Which issue(s) this PR fixes:
Fixes kubermatic/kubermatic#12218
What type of PR is this?
/kind bug
Special notes for your reviewer:
Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: