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

chore(kuma-cp) Use go structs instead of gotemplate for bootstrap (backport #3156) #3173

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 17, 2021

This is an automatic backport of pull request #3156 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

)

We were using a yaml template for generating a protobuf that was then
validated and serialized back to yaml.
We now create directly the protobuf object.
This makes the code statically checked and increases performance of bootstrap
Also simplify the bootstrap code by inlining some methods

Signed-off-by: Charly Molter <charly.molter@konghq.com>
(cherry picked from commit 8d366db)
@mergify mergify bot requested a review from a team as a code owner November 17, 2021 13:24
@codecov-commenter
Copy link

Codecov Report

Merging #3173 (c591c5c) into release-1.4 (061610b) will increase coverage by 0.18%.
The diff coverage is 93.56%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-1.4    #3173      +/-   ##
===============================================
+ Coverage        52.23%   52.42%   +0.18%     
===============================================
  Files              923      924       +1     
  Lines            53629    53836     +207     
===============================================
+ Hits             28015    28224     +209     
+ Misses           23399    23396       -3     
- Partials          2215     2216       +1     
Impacted Files Coverage Δ
pkg/util/proto/types.go 80.95% <71.42%> (-4.77%) ⬇️
pkg/xds/bootstrap/generator.go 64.17% <79.10%> (+1.22%) ⬆️
pkg/xds/bootstrap/template_v3.go 99.13% <99.13%> (ø)
pkg/core/runtime/component/component.go 81.13% <0.00%> (-7.55%) ⬇️
pkg/mads/v1/client/client.go 41.25% <0.00%> (-2.50%) ⬇️
api/observability/v1/mads.pb.go 34.53% <0.00%> (-1.04%) ⬇️

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 061610b...c591c5c. Read the comment docs.

@michaelbeaumont michaelbeaumont merged commit 3c5ba74 into release-1.4 Nov 17, 2021
@michaelbeaumont michaelbeaumont deleted the mergify/bp/release-1.4/pr-3156 branch November 17, 2021 13:55
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.

3 participants