Skip to content

Commit

Permalink
fix(kuma-cp) replace an in-place write to map with 'WithTags' method (#…
Browse files Browse the repository at this point in the history
…1694)

(cherry picked from commit eb224fe)
  • Loading branch information
lobkovilya authored and mergify-bot committed Mar 17, 2021
1 parent decf6ba commit 4eac9ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/xds/topology/outbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import (
"context"
"fmt"

mesh_proto "github.com/kumahq/kuma/api/mesh/v1alpha1"
"github.com/kumahq/kuma/api/system/v1alpha1"

"github.com/kumahq/kuma/pkg/core"

mesh_proto "github.com/kumahq/kuma/api/mesh/v1alpha1"
"github.com/kumahq/kuma/pkg/core/datasource"
mesh_core "github.com/kumahq/kuma/pkg/core/resources/apis/mesh"
core_xds "github.com/kumahq/kuma/pkg/core/xds"
"github.com/kumahq/kuma/pkg/xds/envoy"
)

const (
Expand Down Expand Up @@ -150,7 +149,7 @@ func buildExternalServiceEndpoint(externalService *mesh_core.ExternalServiceReso

tags := externalService.Spec.GetTags()
if es.TLSEnabled {
tags[`kuma.io/external-service-name`] = externalService.Meta.GetName()
tags = envoy.Tags(tags).WithTags(mesh_proto.ExternalServiceTag, externalService.Meta.GetName())
}

return &core_xds.Endpoint{
Expand Down

0 comments on commit 4eac9ac

Please sign in to comment.