diff --git a/cluster-autoscaler/core/static_autoscaler.go b/cluster-autoscaler/core/static_autoscaler.go index f9c91aa94592..3e7e5781e42c 100644 --- a/cluster-autoscaler/core/static_autoscaler.go +++ b/cluster-autoscaler/core/static_autoscaler.go @@ -294,7 +294,6 @@ func (a *StaticAutoscaler) RunOnce(currentTime time.Time) caerrors.AutoscalerErr return caerrors.ToAutoscalerError(caerrors.ApiCallError, err) } - // Update cluster resource usage metrics coresTotal, memoryTotal := calculateCoresMemoryTotal(allNodes, currentTime) metrics.UpdateClusterCPUCurrentCores(coresTotal) metrics.UpdateClusterMemoryCurrentBytes(memoryTotal)