From 8186584296ad90f369698628dabcbc3e8d2af47b Mon Sep 17 00:00:00 2001 From: Panagiotis Papadomitsos Date: Tue, 20 Feb 2024 13:30:51 -0800 Subject: [PATCH] Typo --- internal/kubernetes/eventhandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/kubernetes/eventhandler.go b/internal/kubernetes/eventhandler.go index 1f91e3ce..30ac1fdb 100644 --- a/internal/kubernetes/eventhandler.go +++ b/internal/kubernetes/eventhandler.go @@ -168,7 +168,7 @@ func (h *DrainingResourceEventHandler) HandleNode(n *core.Node) { nodeTaints := n.Spec.Taints if len(nodeTaints) > 0 && (taintExists(nodeTaints, &autoscalerTaint) || taintExists(nodeTaints, &karpenterTaint)) { - // Delete prior scheduled draining if it exists as its draininng now being managed by Karpenter/CAS + // Delete prior scheduled draining if it exists as its draining now being managed by Karpenter/CAS preHasSchedule, _ := h.drainScheduler.HasSchedule(n.GetName()) if preHasSchedule { h.logger.Info("Node was previously scheduled to be drained by is now being scaled down by cluster-autoscaler/karpenter, removing prior schedule.", zap.String("node", n.GetName()))