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) refactor cluster generation #752

Merged
merged 6 commits into from
May 25, 2020

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

Some time ago we refactored listener/endpoint generation to builders, so you can compose functionality. This pattern worked well so this PR introduces the same thing but for clusters.

This way we can introduce changes for generating certs per inbound in a more clean way.

I also split the proxy_template.go to a generator per file so it's not tangled up in one huge file.

@jakubdyszkiewicz jakubdyszkiewicz requested a review from a team May 20, 2020 11:12
Copy link
Contributor

@lobkovilya lobkovilya left a comment

Choose a reason for hiding this comment

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

That's great! I think I have to implement CircuitBreaker on top of that refactoring. Overall looks good, but I didn't check carefully code in Generate methods, looks like it just copy-pasted without modification?

pkg/xds/envoy/clusters/alt_stat_name_configurer.go Outdated Show resolved Hide resolved
pkg/xds/envoy/clusters/client_side_mtls_configurer.go Outdated Show resolved Hide resolved
pkg/xds/envoy/clusters/client_side_mtls_configurer.go Outdated Show resolved Hide resolved
pkg/xds/envoy/clusters/pass_through_cluster_configurer.go Outdated Show resolved Hide resolved
@jakubdyszkiewicz jakubdyszkiewicz merged commit b788208 into master May 25, 2020
@jakubdyszkiewicz jakubdyszkiewicz deleted the chore/refactor-cluster-generation branch May 25, 2020 12:22
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

2 participants