mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
add client labels to k8s plugin metadata (#6475)
Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user