Merge pull request #7918 from x13n/master

Fix incorrect usage of klog Warningf function
This commit is contained in:
Kubernetes Prow Robot 2025-03-13 06:11:48 -07:00 committed by GitHub
commit 214215f320
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func (e *EmptyClusterProcessor) ShouldAbort(context *context.AutoscalingContext,
// OnEmptyCluster runs actions if the cluster is empty
func OnEmptyCluster(context *context.AutoscalingContext, status string, emitEvent bool) {
klog.Warningf(status)
klog.Warning(status)
context.ProcessorCallbacks.ResetUnneededNodes()
// updates metrics related to empty cluster's state.
metrics.UpdateClusterSafeToAutoscale(false)