From 5a3532da912d7559fe381605d81b257a6fc6c207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Thu, 29 Sep 2022 17:50:19 +0200 Subject: [PATCH] chore: use constant in cert manager controller (#4747) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché Signed-off-by: Charles-Edouard Brétéché --- pkg/controllers/certmanager/log.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/controllers/certmanager/log.go b/pkg/controllers/certmanager/log.go index 16e79a765b..1da0b3c01b 100644 --- a/pkg/controllers/certmanager/log.go +++ b/pkg/controllers/certmanager/log.go @@ -2,4 +2,6 @@ package certmanager import "sigs.k8s.io/controller-runtime/pkg/log" -var logger = log.Log.WithName("certmanager-controller") +const controllerName = "certmanager-controller" + +var logger = log.Log.WithName(controllerName)