-
Notifications
You must be signed in to change notification settings - Fork 691
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
internal/envoy: enable Envoy ADS support #1864
Conversation
cmd/contour/bootstrap.go
Outdated
@@ -37,6 +37,7 @@ func registerBootstrap(app *kingpin.Application) (*kingpin.CmdClause, *bootstrap | |||
bootstrap.Flag("envoy-cert-file", "gRPC Client cert filename for Envoy to load").Envar("ENVOY_CERT_FILE").StringVar(&ctx.config.GrpcClientCert) | |||
bootstrap.Flag("envoy-key-file", "gRPC Client key filename for Envoy to load").Envar("ENVOY_KEY_FILE").StringVar(&ctx.config.GrpcClientKey) | |||
bootstrap.Flag("namespace", "The namespace the Envoy container will run in").Envar("CONTOUR_NAMESPACE").Default("projectcontour").StringVar(&ctx.config.Namespace) | |||
bootstrap.Flag("enable-ads", "Enable the Envoy Aggregated Discovery Service").BoolVar(&ctx.config.EnableADS) |
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.
Is there a reason to not just turn this on and not allow for a flag?
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.
Not especially, just risk mitigation. I'd be OK with removing it, or flipping the default. I'd slightly prefer the latter, since users could flip ADS off if something horrible happens :)
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.
Flipped this so it is enabled by default.
31803b3
to
64734eb
Compare
64734eb
to
52bd5c6
Compare
@davecheney Can you please take a look? |
Thanks for working on this. I’d prefer to look at this after 1.1 is out.
… On 19 Nov 2019, at 03:35, James Peach ***@***.***> wrote:
@davecheney Can you please take a look?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
52bd5c6
to
ee6af43
Compare
ee6af43
to
469f89e
Compare
Since the Contour GRPC server already multiplexes Envoy requests using the resource type URL, we can support ADS simply by enabling it in the bootstrap configuration. This fixes projectcontour#1178. This fixes projectcontour#1286. Signed-off-by: James Peach <[email protected]>
469f89e
to
71b224a
Compare
Updated with a nonce de-synchronization fix. |
This needs a lot more work, based on my improved understanding of ADS. |
Since the Contour GRPC server already multiplexes Envoy requests
using the resource type URL, we can support ADS simply by enabling
it in the bootstrap configuration.
Signed-off-by: James Peach [email protected]