Require a KubeletClient in master.New().
Without this, tests which create a master will panic with a nil pointer when the periodic podCache update runs. Deleted unused FakePodInfoGetter. Added FakeKubeletClient. Passed to master.New. Required a KubeletClient in master.New.
This commit is contained in:
@@ -41,6 +41,7 @@ func TestClient(t *testing.T) {
|
||||
}
|
||||
m := master.New(&master.Config{
|
||||
EtcdHelper: helper,
|
||||
KubeletClient: client.FakeKubeletClient{},
|
||||
EnableLogsSupport: false,
|
||||
EnableUISupport: false,
|
||||
APIPrefix: "/api",
|
||||
|
Reference in New Issue
Block a user