mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-24 16:57:27 +00:00
Pod cache needs to be namespace-aware
This commit is contained in:
@@ -60,7 +60,7 @@ func TestHTTPPodInfoGetter(t *testing.T) {
|
||||
Client: http.DefaultClient,
|
||||
Port: uint(port),
|
||||
}
|
||||
gotObj, err := podInfoGetter.GetPodInfo(parts[0], "foo")
|
||||
gotObj, err := podInfoGetter.GetPodInfo(parts[0], api.NamespaceDefault, "foo")
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
@@ -102,7 +102,7 @@ func TestHTTPPodInfoGetterNotFound(t *testing.T) {
|
||||
Client: http.DefaultClient,
|
||||
Port: uint(port),
|
||||
}
|
||||
_, err = podInfoGetter.GetPodInfo(parts[0], "foo")
|
||||
_, err = podInfoGetter.GetPodInfo(parts[0], api.NamespaceDefault, "foo")
|
||||
if err != ErrPodInfoNotAvailable {
|
||||
t.Errorf("Expected %#v, Got %#v", ErrPodInfoNotAvailable, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user