Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add hub leader config controller #2299

Merged

Conversation

tnsimon
Copy link
Contributor

@tnsimon tnsimon commented Feb 5, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:

Adds hubleader config controller to create configmap for the nodepool leader and pool scoped metadata

Which issue(s) this PR fixes:

Fixes #2260

Special notes for your reviewer:

/assign @rambohe-ch

Does this PR introduce a user-facing change?

NONE

other Note

An internal CRD would be an improvement than a configmap to have a structured schema. Endpoints resource was not used due to character limitations using annotations to store poolscoped metadata. It was decided to use a config map instead.

@tnsimon tnsimon requested a review from a team as a code owner February 5, 2025 21:42
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 29.65116% with 121 lines in your changes missing coverage. Please review.

Please upload report for BASE (master@ffb736a). Learn more about missing BASE report.
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...ller/hubleaderconfig/hubleaderconfig_controller.go 35.23% 64 Missing and 4 partials ⚠️
...t-manager/app/options/hubleaderconfigcontroller.go 0.00% 26 Missing ⚠️
pkg/yurtmanager/controller/base/controller.go 0.00% 17 Missing ⚠️
cmd/yurt-manager/app/options/options.go 0.00% 7 Missing ⚠️
cmd/yurt-manager/names/controller_names.go 0.00% 2 Missing ⚠️
pkg/projectinfo/projectinfo.go 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2299   +/-   ##
=========================================
  Coverage          ?   45.30%           
=========================================
  Files             ?      410           
  Lines             ?    27152           
  Branches          ?        0           
=========================================
  Hits              ?    12301           
  Misses            ?    13627           
  Partials          ?     1224           
Flag Coverage Δ
unittests 45.30% <29.65%> (?)

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.

Simon Tien added 2 commits February 7, 2025 08:56
@tnsimon tnsimon force-pushed the add-hub-leader-config-controller branch from cba4e4b to f5b0b86 Compare February 9, 2025 22:51
@rambohe-ch rambohe-ch added approved approved lgtm lgtm labels Feb 10, 2025
@rambohe-ch
Copy link
Member

/LGTM

@rambohe-ch rambohe-ch merged commit 8fc400b into openyurtio:master Feb 10, 2025
14 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
approved approved lgtm lgtm
Projects
None yet
2 participants