From 92b7e658e327f0fafef5c8496f920726e087ba4d Mon Sep 17 00:00:00 2001 From: miles-to-go <45916686+miles-to-go@users.noreply.github.com> Date: Thu, 7 Mar 2024 14:34:09 -0500 Subject: add client labels to k8s plugin metadata (#6475) Signed-off-by: Nolan Miles --- plugin/kubernetes/handler_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugin/kubernetes/handler_test.go') diff --git a/plugin/kubernetes/handler_test.go b/plugin/kubernetes/handler_test.go index 405dc73d9..683e0de7a 100644 --- a/plugin/kubernetes/handler_test.go +++ b/plugin/kubernetes/handler_test.go @@ -580,7 +580,13 @@ func (APIConnServeTest) PodIndex(ip string) []*object.Pod { return []*object.Pod{} } a := []*object.Pod{ - {Namespace: "podns", Name: "foo", PodIP: "10.240.0.1"}, // Remote IP set in test.ResponseWriter + { + Namespace: "podns", Name: "foo", PodIP: "10.240.0.1", + Labels: map[string]string{ + "app.kubernetes.io/name": "foo", + "bar": "baz", + }, + }, // Remote IP set in test.ResponseWriter } return a } -- cgit v1.2.3