add client labels to k8s plugin metadata (#6475)

Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
This commit is contained in:
miles-to-go 2024-03-07 14:34:09 -05:00 committed by GitHub
parent 3d67ee907d
commit 92b7e658e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 24 additions and 5 deletions

View file

@ -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
}