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: envoy control plane #100

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

feat: envoy control plane #100

wants to merge 13 commits into from

Conversation

FemiNoviaLina
Copy link

control plane for envoy.

@FemiNoviaLina FemiNoviaLina marked this pull request as ready for review October 22, 2024 09:32
cmd/proxy.go Outdated Show resolved Hide resolved
cmd/serve_proxy.go Outdated Show resolved Hide resolved
cmd/serve.go Outdated
Comment on lines 184 to 186
if cfg.Proxy.EnvoyAgent.XDS.Host != "" && cfg.Proxy.EnvoyAgent.XDS.Port != 0 {
cbs, err = serveXDS(ctx, logger, cfg.Proxy, pgRuleRepository)
} else {
Copy link
Member

Choose a reason for hiding this comment

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

Does this mean if we pass host and port of envoy agent, this will use envoy otherwise it is falling back to the old proxy?
If yes, let's not do that way. Let's have an explicit config to choose.

type ServicesConfig struct {
Services []Config `yaml:"services" mapstructure:"services"`
EnvoyAgent EnvoyAgent `yaml:"envoy" mapstructure:"envoy"`
Copy link
Member

Choose a reason for hiding this comment

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

let's update the config in https://github.com/goto/shield/blob/main/config/config.yaml with the example on how to use this envoy agent?

)

const (
CLUSTER_TYPE_URL = "type.googleapis.com/envoy.config.cluster.v3.Cluster"
Copy link
Member

Choose a reason for hiding this comment

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

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.

2 participants