Skip to content

Conversation

@FemiNoviaLina
Copy link

control plane for envoy.

@FemiNoviaLina FemiNoviaLina marked this pull request as ready for review October 22, 2024 09:32
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