Skip to content

Add Cluster parameter to IProxyConfigFilter.ConfigureRouteAsync #1229

@Kahbazi

Description

@Kahbazi

What should we add or change to make your life better?

Add ClusterConfig? parameter to IProxyConfigFilter.ConfigureRouteAsync.

namespace Yarp.ReverseProxy.Configuration
{
    public interface IProxyConfigFilter
    {
-        ValueTask<RouteConfig> ConfigureRouteAsync(RouteConfig route, CancellationToken cancel);     
+        ValueTask<RouteConfig> ConfigureRouteAsync(RouteConfig route, ClusterConfig? cluster, CancellationToken cancel);
    }
}

Why is this important to you?

Beside grouping for route config (#164), this could be used to apply certain rule for routes based on cluster.Metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions