-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
✨ Remove configmap entry when doing a KubeadmControlPlane scale down #2383
✨ Remove configmap entry when doing a KubeadmControlPlane scale down #2383
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: detiber 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 |
/hold I messed up the attribution on this PR, it should include @dlipovetsky |
/test pull-cluster-api-capd-e2e |
/milestone v0.3.0-rc.2 |
8e80f87
to
397621c
Compare
Attribution fixed, leaving hold on prerequisites, though |
Co-authored-by: Daniel Lipovetsky <[email protected]>
397621c
to
3418ba7
Compare
/hold cancel |
lgtm, but will defer to a third party 🙂 |
@@ -453,6 +454,21 @@ func (r *KubeadmControlPlaneReconciler) scaleDownControlPlane(ctx context.Contex | |||
} | |||
} | |||
|
|||
if !internal.HasAnnotationKey(controlplanev1.ScaleDownConfigMapEntryRemovedAnnotation)(machineToDelete) { | |||
if err := r.managementCluster.TargetClusterControlPlaneIsHealthy(ctx, util.ObjectKey(cluster), kcp.Name); err != nil { |
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.
Not a blocker, but we need to check provider contracts around load balancers to ensure they stop sending requests to machines.
/lgtm |
What this PR does / why we need it:
Removes the machine's kubeadm configmap entry when doing a KubeadmControlPlane scale down
Related to #2242
Builds on #2379 #2380 #2381 #2382