From 5fec38dc9bd78988595a1815d21ee0020f80180c Mon Sep 17 00:00:00 2001 From: "lan.tian" Date: Wed, 24 Jul 2024 15:00:25 +0800 Subject: [PATCH] typo: update the daemon update typo Signed-off-by: lan.tian --- pkg/controller/daemon/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/daemon/update.go b/pkg/controller/daemon/update.go index 0b099443e09..6add594a817 100644 --- a/pkg/controller/daemon/update.go +++ b/pkg/controller/daemon/update.go @@ -114,7 +114,7 @@ func (dsc *DaemonSetsController) rollingUpdate(ctx context.Context, ds *apps.Dae } } - // use any of the candidates we can, including the allowedReplacemnntPods + // use any of the candidates we can, including the allowedReplacementPods logger.V(5).Info("DaemonSet allowing replacements", "daemonset", klog.KObj(ds), "replacements", len(allowedReplacementPods), "maxUnavailable", maxUnavailable, "numUnavailable", numUnavailable, "candidates", len(candidatePodsToDelete)) remainingUnavailable := maxUnavailable - numUnavailable if remainingUnavailable < 0 {