cluster-api icon indicating copy to clipboard operation
cluster-api copied to clipboard

:sparkles: Add topology field for NodeDeletionTimeout

Open abhijit-dev82 opened this issue 2 years ago • 12 comments

What this PR does / why we need it: Make NodeDeletionTimeOut field in MachineDeployment configurable.

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 #6450

/kind feature /area topology

abhijit-dev82 avatar Aug 05 '22 18:08 abhijit-dev82

Welcome @abhijit-dev82!

It looks like this is your first PR to kubernetes-sigs/cluster-api 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar Aug 05 '22 18:08 k8s-ci-robot

@abhijit-dev82: This issue is currently awaiting triage.

If CAPI contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

k8s-ci-robot avatar Aug 05 '22 18:08 k8s-ci-robot

Hi @abhijit-dev82. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

k8s-ci-robot avatar Aug 05 '22 18:08 k8s-ci-robot

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign vincepri for approval by writing /assign @vincepri in a comment. For more information see:The Kubernetes Code Review Process.

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Aug 05 '22 18:08 k8s-ci-robot

/ok-to-test

killianmuldoon avatar Aug 09 '22 14:08 killianmuldoon

/retest

abhijit-dev82 avatar Aug 09 '22 15:08 abhijit-dev82

@abhijit-dev82 Are you able to run the full make generate target locally?

killianmuldoon avatar Aug 09 '22 16:08 killianmuldoon

@killianmuldoon Yes it went through, but I missed pushing an autogenerated file "api/v1beta1/zz_generated.openapi.go", have done that now.

abhijit-dev82 avatar Aug 09 '22 16:08 abhijit-dev82

/retest

abhijit-dev82 avatar Aug 09 '22 16:08 abhijit-dev82

A couple of things I've found in another round of review / testing:

  1. I'm not able to set the value on a Cluster's control plane - instead I'm getting errors from the webhook. As far as I can tell this is also the case for https://github.com/kubernetes-sigs/cluster-api/pull/6379. This must be down to how the time.Duration is parsed differently between the control plane and the machineDeployment. This is a major bug we should get to the bottom of.
  2. We should add webhook validation for both this and https://github.com/kubernetes-sigs/cluster-api/pull/6379 (that can be in a follow up PR).
  3. We should also add these values in our integration tests to check that they're really working. (another follow-up PR)
  4. Could you update the commit message so it doesn't repeat?

Have you been able to get setting the fields to work on running clusters? I might be missing something about how to set them, but now it looks at the least inconsistent and likely to be broken.

killianmuldoon avatar Aug 10 '22 11:08 killianmuldoon

Hey @killianmuldoon I have pushed the changes including your changes to fix the main issue to see if the tests succeed.

abhijit-dev82 avatar Aug 11 '22 09:08 abhijit-dev82

Good to see it's working!

/hold

until #7047 merges.

killianmuldoon avatar Aug 11 '22 11:08 killianmuldoon

@abhijit-dev82: PR needs rebase.

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.

k8s-ci-robot avatar Aug 17 '22 12:08 k8s-ci-robot

/unhold

Fix for the handling of duration is now merged.

killianmuldoon avatar Aug 17 '22 12:08 killianmuldoon

HI @killianmuldoon , Had some issues merging the changes , hence had to spawn a new PR, https://github.com/kubernetes-sigs/cluster-api/pull/7098

abhijit-dev82 avatar Aug 20 '22 05:08 abhijit-dev82