From ec8b0dac2e5d570c4341d8eb48324a812a418a01 Mon Sep 17 00:00:00 2001 From: Hevellyn Date: Mon, 27 Jan 2025 19:43:23 +0100 Subject: [PATCH] Fixed verbiage of the method calculateCoresMemoryTotal (#7129) * Fixed verbiage * Dropped comment to avoid dubious interpretation --- cluster-autoscaler/core/static_autoscaler.go | 1 - 1 file changed, 1 deletion(-) 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)