Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions pkg/consuldp/consul_dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,9 @@ func (cdp *ConsulDataplane) Run(ctx context.Context) error {
ServerWatchDisabled: cdp.cfg.Consul.ServerWatchDisabled,
Credentials: creds,
TLS: tls,
ServerEvalFn: func(state discovery.State) bool {
// We require support for generating Envoy bootstrap configuration at least.
//
// TODO: now that we consume Consul's protobufs as a Go module, should we
// have the discovery package expose the protobuf enum type rather than the
// string representation?
return state.DataplaneFeatures[pbdataplane.DataplaneFeatures_DATAPLANE_FEATURES_ENVOY_BOOTSTRAP_CONFIGURATION.String()]
},
ServerEvalFn: discovery.SupportsDataplaneFeatures(
pbdataplane.DataplaneFeatures_DATAPLANE_FEATURES_ENVOY_BOOTSTRAP_CONFIGURATION.String(),
),
}, cdp.logger.Named("server-connection-manager"))
if err != nil {
return err
Expand Down