From 53f470e252f344c1946ac4e6169ffcae8c8a455f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wilson=20J=C3=BAnior?= Date: Wed, 4 Sep 2024 15:12:57 -0300 Subject: [PATCH] Fix lint --- internal/controllers/certificates/cert_manager.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/controllers/certificates/cert_manager.go b/internal/controllers/certificates/cert_manager.go index 1d4ca5b7..c8e46886 100644 --- a/internal/controllers/certificates/cert_manager.go +++ b/internal/controllers/certificates/cert_manager.go @@ -99,11 +99,6 @@ func removeOldCertificates(ctx context.Context, c client.Client, instance, insta return err } - certName := cert.Labels[CertificateNameLabel] - if certName == "" { - certName = CertManagerCertificateName - } - if err = c.Delete(ctx, &cert); err != nil { return err }