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

Wait for API pod to be healthy before registering control plane node in instance group

Open bochengchu opened this issue 2 months ago • 9 comments

/kind bug

What this PR does / why we need it: Fixes #1407

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:

  • [ ] squashed commits
  • [ ] includes documentation
  • [ ] adds unit tests

Release note:

Wait for API pod to be healthy before registering control plane node in instance group

bochengchu avatar Sep 24 '25 19:09 bochengchu

Deploy Preview for kubernetes-sigs-cluster-api-gcp ready!

Name Link
Latest commit da844bc0a12caf687bae579af4df8e7b006f07c3
Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-cluster-api-gcp/deploys/6936036da32cbc000879608b
Deploy Preview https://deploy-preview-1533--kubernetes-sigs-cluster-api-gcp.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Sep 24 '25 19:09 netlify[bot]

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bochengchu Once this PR has been reviewed and has the lgtm label, please assign chrischdi for approval. For more information see the 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 Sep 24 '25 19:09 k8s-ci-robot

Hi @bochengchu. 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-sigs/prow repository.

k8s-ci-robot avatar Sep 24 '25 19:09 k8s-ci-robot

Nice catch @bochengchu - I think having a test showing the problem would be awesome (I guess in another PR, and we can figure out the sequencing of merging it). And some comments on the critical line when we don't add the new control plane node until it is ready would be helpful for others looking to understand the code / the issue.

/ok-to-test

justinsb avatar Sep 25 '25 20:09 justinsb

@salasberryfin I see @bochengchu added the note.

damdo avatar Oct 24 '25 08:10 damdo

/ok-to-test

justinsb avatar Nov 20 '25 21:11 justinsb

/test pull-cluster-api-provider-gcp-build

bochengchu avatar Nov 20 '25 23:11 bochengchu

/test pull-cluster-api-provider-gcp-build pull-cluster-api-provider-gcp-e2e-test pull-cluster-api-provider-gcp-make pull-cluster-api-provider-gcp-test

damdo avatar Nov 21 '25 09:11 damdo

I think the PR needs rebasing @bochengchu

damdo avatar Nov 21 '25 09:11 damdo