-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
cmd/serve.go
Outdated
if cfg.Proxy.EnvoyAgent.XDS.Host != "" && cfg.Proxy.EnvoyAgent.XDS.Port != 0 { | ||
cbs, err = serveXDS(ctx, logger, cfg.Proxy, pgRuleRepository) | ||
} else { |
There was a problem hiding this comment.
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"` |
There was a problem hiding this comment.
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?
internal/proxy/envoy/xds/ads/ads.go
Outdated
) | ||
|
||
const ( | ||
CLUSTER_TYPE_URL = "type.googleapis.com/envoy.config.cluster.v3.Cluster" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we reuse the url from this repo instead? https://github.com/envoyproxy/go-control-plane/blob/fc612d4a3afabcbec1906fcd28df0f46adf6999b/pkg/resource/v3/resource.go#L19
control plane for envoy.