-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 KCP health checks handle consistently errors and check failures #3863
🐛 KCP health checks handle consistently errors and check failures #3863
Conversation
/milestone v0.3.11 |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/milestone v0.4.0
@vincepri this should go in v0.3.11 first |
Thanks for the fix @fabriziopandini LGTM, I only have 1 comment. |
/lgtm |
@@ -384,34 +384,32 @@ func (r *KubeadmControlPlaneReconciler) reconcileDelete(ctx context.Context, clu | |||
logger := r.Log.WithValues("namespace", kcp.Namespace, "kubeadmControlPlane", kcp.Name, "cluster", cluster.Name) | |||
logger.Info("Reconcile KubeadmControlPlane deletion") | |||
|
|||
// Gets all machines, not just control plane machines. | |||
allMachines, err := r.managementCluster.GetMachinesForCluster(ctx, util.ObjectKey(cluster)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about MachinePools?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is just shuffling things around to fix a bug, but this bit is not changing from what we have currently.
However this is a good point and I open an issue to track that we are missing machine pools here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold |
/close |
@fabriziopandini: Closed this PR. In response to this:
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. |
What this PR does / why we need it:
This PR fixes KCP not calling reconcileEtcdMembers for deleted machines by handling more consistently errors and check failures (everything is an error)
Which issue(s) this PR fixes:
Fixes: #3860
/assign @sedefsavas
/assign @vincepri