mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
[Azure] cache map remove exists check
This commit is contained in:
parent
d6f44b0ea9
commit
59a28111be
@ -173,11 +173,9 @@ func (ss *scaleSet) newVMSSVirtualMachinesCache() (*azcache.TimedCache, error) {
|
|||||||
}
|
}
|
||||||
localCache.Store(computerName, vmssVMCacheEntry)
|
localCache.Store(computerName, vmssVMCacheEntry)
|
||||||
|
|
||||||
if _, exists := oldCache[computerName]; exists {
|
|
||||||
delete(oldCache, computerName)
|
delete(oldCache, computerName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// add old missing cache data with nil entries to prevent aggressive
|
// add old missing cache data with nil entries to prevent aggressive
|
||||||
// ARM calls during cache invalidation
|
// ARM calls during cache invalidation
|
||||||
|
Loading…
Reference in New Issue
Block a user