Skip to content

xds: build the interceptor chain for routes with cluster_specifier_plugins as well #8857

@easwars

Description

@easwars

We are currently building the interceptor chain only for routes that point to weighted_clusters. See:

interceptor, err := newInterceptor(r.xdsConfig.Listener.HTTPFilters, wc.HTTPFilterConfigOverride, rt.HTTPFilterConfigOverride, r.xdsConfig.VirtualHost.HTTPFilterConfigOverride)

And not doing so in the case where the route points to a cluster_specifier_plugin. See:

if rt.ClusterSpecifierPlugin != "" {

This needs to be fixed. Interceptor chain needs to be build for all cluster types. As part of this change, we also need to add a test to ensure that filters work properly for routes that match to cluster_specifier_plugins.

Metadata

Metadata

Assignees

Labels

Area: xDSIncludes everything xDS related, including LB policies used with xDS.P1Type: Bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions