Skip to content
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 reconcile when APIserver is online in VSphereCluster controller #2551

Merged

Conversation

sbueringer
Copy link
Member

@sbueringer sbueringer commented Dec 13, 2023

Signed-off-by: Stefan Büringer buringerst@vmware.com

What this PR does / why we need it:
See #2465 (comment)

Kudos to @chrischdi for the nice research!!

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

Signed-off-by: Stefan Büringer buringerst@vmware.com
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 13, 2023
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 13, 2023
@sbueringer
Copy link
Member Author

/assign @chrischdi @fabriziopandini

/cc @rikatz
(no review needed, just fyi because it's a nice cleanup)

@k8s-ci-robot k8s-ci-robot requested a review from rikatz December 13, 2023 13:12
@@ -223,25 +220,6 @@ func (r *clusterReconciler) reconcileNormal(ctx context.Context, clusterCtx *cap

clusterCtx.VSphereCluster.Status.Ready = true

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is nothing (anymore) in the Reconcile func that depends on the wl cluster APIserver being online

(this was different in previous versions where this controller deployed CCM/CSI)

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-vsphere-e2e-full-main

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (bf9483f) 63.58% compared to head (5b67044) 63.10%.

Files Patch % Lines
pkg/services/govmomi/util.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2551      +/-   ##
==========================================
- Coverage   63.58%   63.10%   -0.49%     
==========================================
  Files         120      120              
  Lines        8685     8599      -86     
==========================================
- Hits         5522     5426      -96     
- Misses       2735     2745      +10     
  Partials      428      428              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chrischdi
Copy link
Member

Very nice cleanup.

The e2e-full-main tests already run 👍

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 13, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 5cb08208b021f995e7f4b523a0de6f5673c17d23

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrischdi

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 13, 2023
@k8s-ci-robot k8s-ci-robot merged commit 142431c into kubernetes-sigs:main Dec 13, 2023
14 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.9 milestone Dec 13, 2023
@sbueringer sbueringer deleted the pr-improve-goroutine-handling branch December 14, 2023 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review and Refactor Goroutine Context Handling
3 participants