From c191b99eb3312e812995bf1d4e15f639b73543cb Mon Sep 17 00:00:00 2001 From: geoffrey1330 Date: Wed, 20 Dec 2023 10:26:40 +0100 Subject: [PATCH] Add a no-op implementation of ICertificateWatcher Signed-off-by: geoffrey1330 --- keptn-cert-manager/pkg/certificates/watcher.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/keptn-cert-manager/pkg/certificates/watcher.go b/keptn-cert-manager/pkg/certificates/watcher.go index 25330d413c..b45371b0be 100644 --- a/keptn-cert-manager/pkg/certificates/watcher.go +++ b/keptn-cert-manager/pkg/certificates/watcher.go @@ -136,13 +136,10 @@ func (watcher *CertificateWatcher) ValidateCertificateExpiration(certData []byte return true, nil } -// NoOpCertificateWatcher is a no-op implementation of ICertificateWatcher. type NoOpCertificateWatcher struct{} -// WaitForCertificates is a no-op function for the NoOpCertificateWatcher. func (nw *NoOpCertificateWatcher) WaitForCertificates() {} -// NewNoOpCertificateWatcher creates a new instance of NoOpCertificateWatcher. func NewNoOpCertificateWatcher() *NoOpCertificateWatcher { return &NoOpCertificateWatcher{} }