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

fix: ensure hub leader configmap is deleted with nodepool #2324

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

tnsimon
Copy link
Contributor

@tnsimon tnsimon commented Feb 14, 2025

What type of PR is this?

/kind bug

What this PR does / why we need it:

Hub leader config should be deleted when nodepool is deleted

Which issue(s) this PR fixes:

Fixes #2323

Special notes for your reviewer:

/assign @rambohe-ch

Does this PR introduce a user-facing change?

None

other Note

  • Removed set enableLeaderElection = false from defaulting webhook. Should not set this default.
  • Created e2e scenario for hub leader config clean up

@tnsimon tnsimon requested a review from a team as a code owner February 14, 2025 04:03
@tnsimon tnsimon changed the title fix: ensure configmap is deleted with nodepool fix: ensure hub leader configmap is deleted with nodepool Feb 14, 2025
@tnsimon tnsimon force-pushed the delete-hubleader-config branch from 1dfc50f to 9dda519 Compare February 14, 2025 04:25
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

Attention: Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.

Project coverage is 45.74%. Comparing base (e21f6ff) to head (61f9054).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...ller/hubleaderconfig/hubleaderconfig_controller.go 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2324      +/-   ##
==========================================
+ Coverage   45.60%   45.74%   +0.13%     
==========================================
  Files         398      393       -5     
  Lines       26331    25835     -496     
==========================================
- Hits        12009    11818     -191     
+ Misses      13144    12877     -267     
+ Partials     1178     1140      -38     
Flag Coverage Δ
unittests 45.74% <77.77%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@tnsimon tnsimon force-pushed the delete-hubleader-config branch 2 times, most recently from 59cdd20 to d5d4fa1 Compare February 16, 2025 21:59
@tnsimon tnsimon force-pushed the delete-hubleader-config branch from d5d4fa1 to 61f9054 Compare February 17, 2025 00:27
@rambohe-ch rambohe-ch added approved approved lgtm lgtm labels Feb 17, 2025
@rambohe-ch
Copy link
Member

/LGTM

@rambohe-ch rambohe-ch merged commit 9f0b43e into openyurtio:master Feb 17, 2025
14 checks passed
@tnsimon tnsimon deleted the delete-hubleader-config branch February 17, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved approved lgtm lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Hub Leader config is not cleaned up when node pool is deleted
2 participants