mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
Fix a problem where if a minion went missing, we still thought the pod was running.
Also convert some tests to table driven.
This commit is contained in:
@@ -37,6 +37,7 @@ type Fake struct {
|
||||
Ctrl api.ReplicationController
|
||||
ServiceList api.ServiceList
|
||||
EndpointsList api.EndpointsList
|
||||
Minions api.MinionList
|
||||
Err error
|
||||
Watch watch.Interface
|
||||
}
|
||||
@@ -144,5 +145,5 @@ func (c *Fake) ServerVersion() (*version.Info, error) {
|
||||
|
||||
func (c *Fake) ListMinions() (*api.MinionList, error) {
|
||||
c.Actions = append(c.Actions, FakeAction{Action: "list-minions", Value: nil})
|
||||
return &api.MinionList{}, nil
|
||||
return &c.Minions, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user