Skip to content

Microsoft.Extensions.ServiceDiscovery.Dns doesn't respect QuerySuffix generated from k8s namespace #7175

@vermilion

Description

@vermilion

Description

There is a bug in DnsSrvServiceEndpointProviderFactory.cs after last refactoring.

Generated variable _querySuffix is not passed further to DefaultServiceDomainNameCallback but options suffix is used instead

Reproduction Steps

Using Dns srv service within dynamic namespaces

        services.AddServiceDiscoveryCore()
            .AddDnsSrvServiceEndpointProvider();

Expected behavior

Resolve should work as before

Actual behavior

Image

Regression?

Image

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-telemetrybugThis issue describes a behavior which is not expected - a bug.untriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions