From d2c497afa42500a281362b484b0bbe9dd3cf8bf7 Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Wed, 18 Nov 2020 16:55:53 -0800 Subject: [PATCH] proxy: v2.121.0 (#5253) This release changes error handling to teardown the server-side connection when an unexpected error is encountered. Additionally, the outbound TCP routing stack can now skip redundant service discovery lookups when profile responses include endpoint information. Finally, the cache implementation has been updated to reduce latency by removing unnecessary buffers. --- * h2: enable HTTP/2 keepalive PING frames (linkerd/linkerd2-proxy#737) * actions: Add timeouts to GitHub actions (linkerd/linkerd2-proxy#738) * outbound: Skip endpoint resolution on profile hint (linkerd/linkerd2-proxy#736) * Add a FromStr for dns::Name (linkerd/linkerd2-proxy#746) * outbound: Avoid redundant TCP endpoint resolution (linkerd/linkerd2-proxy#742) * cache: Make the cache cloneable with RwLock (linkerd/linkerd2-proxy#743) * http: Teardown serverside connections on error (linkerd/linkerd2-proxy#747) --- .proxy-version | 2 +- controller/api/destination/server.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.proxy-version b/.proxy-version index 82143db7cabe9..ccfab984cbafa 100644 --- a/.proxy-version +++ b/.proxy-version @@ -1 +1 @@ -v2.119.0 +v2.121.0 diff --git a/controller/api/destination/server.go b/controller/api/destination/server.go index cdd039b28e8be..12d08b0c66e36 100644 --- a/controller/api/destination/server.go +++ b/controller/api/destination/server.go @@ -203,6 +203,9 @@ func (s *server) GetProfile(dest *pb.GetDestination, stream pb.Destination_GetPr Name: pod.Name, } endpoint, err = toWeightedAddr(podSet.Addresses[podID], s.enableH2Upgrade, s.identityTrustDomain, s.controllerNS) + // `Get` doesn't include the namespace in the per-endpoint + // metadata, so it needs to be special-cased. + endpoint.MetricLabels["namespace"] = pod.Namespace if err != nil { return err }