diff --git a/cluster-autoscaler/core/static_autoscaler.go b/cluster-autoscaler/core/static_autoscaler.go index afb860c5a1c4..c491966a1abd 100644 --- a/cluster-autoscaler/core/static_autoscaler.go +++ b/cluster-autoscaler/core/static_autoscaler.go @@ -745,6 +745,7 @@ func (a *StaticAutoscaler) deleteCreatedNodesWithErrors() (bool, error) { continue } if nodeGroup == nil || reflect.ValueOf(nodeGroup).IsNil() { + a.clusterStateRegistry.RefreshCloudProviderNodeInstancesCache() return false, fmt.Errorf("node %s has no known nodegroup", node.GetName()) } nodesToBeDeletedByNodeGroupId[nodeGroup.Id()] = append(nodesToBeDeletedByNodeGroupId[nodeGroup.Id()], node)