Skip to content

Commit

Permalink
Add cache cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
win32pro committed Jun 26, 2018
1 parent 9e0d3a3 commit b43dfe6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/kubeclient/kubelet_client.go
Expand Up @@ -52,7 +52,6 @@ func (client *KubeletClient) CleanupCache(nodes []*v1.Node) int {
// Fill in the hash map for subsequent lookup
names := make(map[string]bool)
for _, node := range nodes {
names[node.GetName()] = true
ip := repository.ParseNodeIP(node, v1.NodeInternalIP)
if len(ip) == 0 {
glog.Warningf("unable to obtain address for node %s, as it is no longer discovered", node.GetName())
Expand Down

0 comments on commit b43dfe6

Please sign in to comment.