From fa92be660f609fdbe8c246426df6f3872312be93 Mon Sep 17 00:00:00 2001 From: Enxebre Date: Tue, 22 Oct 2019 11:19:20 +0200 Subject: [PATCH] Fix typo logging --- .../machinehealthcheck/machinehealthcheck_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/machinehealthcheck/machinehealthcheck_controller.go b/pkg/controller/machinehealthcheck/machinehealthcheck_controller.go index 58b47f1ec7..799d415879 100644 --- a/pkg/controller/machinehealthcheck/machinehealthcheck_controller.go +++ b/pkg/controller/machinehealthcheck/machinehealthcheck_controller.go @@ -170,11 +170,11 @@ func isAllowedRemediation(mhc *healthcheckingv1alpha1.MachineHealthCheck) bool { } maxUnhealthy, err := intstr.GetValueFromIntOrPercent(mhc.Spec.MaxUnhealthy, mhc.Status.ExpectedMachines, false) if err != nil { - glog.Errorf("%s: error decoding maxUnavailable, remediation won't be allowed: %v", namespacedName(mhc), err) + glog.Errorf("%s: error decoding maxUnhealthy, remediation won't be allowed: %v", namespacedName(mhc), err) return false } - // if noHealthy are above MaxUnavailable we short circuit any farther remediation + // if noHealthy are above maxUnhealthy we short circuit any farther remediation noHealthy := mhc.Status.ExpectedMachines - mhc.Status.CurrentHealthy return (maxUnhealthy - noHealthy) >= 0 }