Commit 04152297 authored by Dawn Chen's avatar Dawn Chen

Merge pull request #5115 from vmarmol/fix-kubelet-start

DockerCache doesn't get containers at startup.
parents ca9d2430 33e6c3eb
......@@ -26,14 +26,8 @@ type DockerCache interface {
}
func NewDockerCache(client DockerInterface) (DockerCache, error) {
containers, err := GetKubeletDockerContainers(client, false)
if err != nil {
return nil, err
}
return &dockerCache{
client: client,
cacheTime: time.Now(),
containers: containers,
updatingCache: false,
}, nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment