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

feat(kuma-cp) give CA managers all backends at once #2956

Merged
merged 4 commits into from
Oct 18, 2021

Conversation

michaelbeaumont
Copy link
Contributor

@michaelbeaumont michaelbeaumont commented Oct 16, 2021

Summary

This allows CA managers to know all of the relevant backends during the Enable step . A manager is then able to, for example, remove state used to maintain previous backends that may no longer exist.

Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2021

Codecov Report

Merging #2956 (f269bb8) into master (c10ab8a) will increase coverage by 0.03%.
The diff coverage is 76.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2956      +/-   ##
==========================================
+ Coverage   52.37%   52.40%   +0.03%     
==========================================
  Files         912      912              
  Lines       52517    52520       +3     
==========================================
+ Hits        27505    27525      +20     
+ Misses      22819    22800      -19     
- Partials     2193     2195       +2     
Impacted Files Coverage Δ
pkg/core/managers/apis/mesh/mesh_helpers.go 63.63% <57.14%> (+13.63%) ⬆️
pkg/plugins/ca/builtin/manager.go 75.86% <100.00%> (ø)
pkg/plugins/ca/provided/manager.go 81.42% <100.00%> (ø)
pkg/plugins/leader/postgres/leader_elector.go 93.61% <0.00%> (-4.26%) ⬇️
pkg/core/resources/manager/cache.go 83.11% <0.00%> (-2.60%) ⬇️
pkg/xds/generator/direct_access_proxy_generator.go 83.90% <0.00%> (+1.14%) ⬆️
pkg/core/runtime/component/component.go 88.67% <0.00%> (+7.54%) ⬆️
pkg/xds/cache/once/cache.go 94.87% <0.00%> (+7.69%) ⬆️
pkg/core/bootstrap/autoconfig.go 54.46% <0.00%> (+8.03%) ⬆️
pkg/plugins/runtime/gateway/route/sorter.go 71.79% <0.00%> (+10.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c10ab8a...f269bb8. Read the comment docs.

@michaelbeaumont michaelbeaumont marked this pull request as ready for review October 16, 2021 15:30
@michaelbeaumont michaelbeaumont requested a review from a team as a code owner October 16, 2021 15:30
Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

This change looks fine.

I would suggest expanding the commit message to explain why this change is needed. I'm assuming that it makes some subsequent change easier. If so, including the explanation in the commit message makes life easier for PR review, but also for people who will look at and try to understand the context of this change in a year from now.

pkg/core/ca/manager.go Outdated Show resolved Hide resolved
pkg/plugins/ca/builtin/manager.go Outdated Show resolved Hide resolved
michaelbeaumont and others added 2 commits October 18, 2021 09:59
Co-authored-by: James Peach <james.peach@konghq.com>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
@michaelbeaumont michaelbeaumont merged commit c586219 into master Oct 18, 2021
@michaelbeaumont michaelbeaumont deleted the feat/ca_manager_active branch October 18, 2021 08:43
michaelbeaumont added a commit that referenced this pull request Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants