-
Notifications
You must be signed in to change notification settings - Fork 431
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
Use clusterctlv1.DeleteForMoveAnnotation
on last systempool validation
#3426
Use clusterctlv1.DeleteForMoveAnnotation
on last systempool validation
#3426
Conversation
Hi @pkbhowmick. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
#2774 can be handled in a better way now as there is a move annotation available at capi. Ref: kubernetes-sigs/cluster-api#8322 The annotation will be available in capi next release i.e. v1.5.0 |
3213f30
to
36356c8
Compare
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Hey @pkbhowmick , How is this PR coming along? |
|
Signed-off-by: Pulak Kanti Bhowmick <[email protected]>
36356c8
to
cf10241
Compare
Hey @pkbhowmick, I guess this PR is a "work in progress" state. If not, please feel free to remove the work-in-progress label. |
/remove-lifecycle stale |
Hi @nawazkh , this PR is ready for review/test |
Thanks for the contribution! Does anyone know if this is covered in an e2e test already (so we can validate that this is working)? |
/ok-to-test The CAPI tests that CAPZ runs include
I think there should also be a unit test case in |
Nope, I forgot this was just for AMMP, and I don't think the CAPI test is using a managed cluster. So AFAICT we don't have e2e coverage for this. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3426 +/- ##
==========================================
- Coverage 56.65% 56.64% -0.02%
==========================================
Files 187 187
Lines 19139 19139
==========================================
- Hits 10844 10842 -2
- Misses 7666 7668 +2
Partials 629 629
☔ View full report in Codecov by Sentry. |
@@ -316,7 +317,8 @@ func (m *AzureManagedMachinePool) validateLastSystemNodePool(cli client.Client) | |||
return nil | |||
} | |||
|
|||
if ownerCluster.Spec.Paused { |
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.
Does the DeleteForMoveAnnotation
supercede this entirely? Wouldn't we still want to check for both conditions?
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.
Yes, we don't need this. Move annotation confirms that object is being deleted because of clusterctl move operation.
/rename Use |
clusterctlv1.DeleteForMoveAnnotation
on last systempool validation
/assign @CecileRobertMichon feel free to loop me in as well |
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
/approve
Let's see if we can add a self-hosted AKS cluster test to validate move in e2e. Opened #4157.
LGTM label has been added. Git tree hash: 6c0d11c3f371c9fb68dd07b8ef154418d48af433
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
this PR fixed a bug in clusterctl move command
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
TODOs:
Release note: