Rename getPodControllers to getPodController so that the truncate/ignore of overlapping RCs is clear

This commit is contained in:
jayunit100
2015-07-29 16:16:58 -04:00
parent 72db883b90
commit 53ee37959b
2 changed files with 7 additions and 7 deletions

View File

@@ -484,7 +484,7 @@ func TestPodControllerLookup(t *testing.T) {
for _, r := range c.inRCs {
manager.rcStore.Add(r)
}
if rc := manager.getPodControllers(c.pod); rc != nil {
if rc := manager.getPodController(c.pod); rc != nil {
if c.outRCName != rc.Name {
t.Errorf("Got controller %+v expected %+v", rc.Name, c.outRCName)
}