From 43888e9e0a22581f54c964b954f4c3d9b2f30f5f Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Thu, 20 Aug 2020 11:42:29 -0400 Subject: [PATCH] Make CA age threshold delta more observable via more precision Signed-off-by: Andrew Keesler --- internal/controller/apicerts/certs_expirer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/apicerts/certs_expirer.go b/internal/controller/apicerts/certs_expirer.go index 3bc4223b0..552b15802 100644 --- a/internal/controller/apicerts/certs_expirer.go +++ b/internal/controller/apicerts/certs_expirer.go @@ -89,7 +89,7 @@ func (c *certsExpirerController) Sync(ctx controller.Context) error { caLifetime := notAfter.Sub(notBefore) caAge := time.Since(notBefore) thresholdDelta := (float32(caAge) / float32(caLifetime)) - c.ageThreshold - klog.Infof("certsExpirerController Sync() found a CA age threshold delta of %.2f", thresholdDelta) + klog.Infof("certsExpirerController Sync() found a CA age threshold delta of %.9g", thresholdDelta) if thresholdDelta > 0 { err := c.k8sClient. CoreV1().