From 2085acc2a1dcf54243922ea26066ee07cd64d9ab Mon Sep 17 00:00:00 2001 From: Vince Prignano Date: Mon, 2 Dec 2024 08:13:37 -0800 Subject: [PATCH] add watch deprecated to certwatcher Signed-off-by: Vince Prignano --- pkg/certwatcher/certwatcher.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/certwatcher/certwatcher.go b/pkg/certwatcher/certwatcher.go index d295b29864..f629dd4e16 100644 --- a/pkg/certwatcher/certwatcher.go +++ b/pkg/certwatcher/certwatcher.go @@ -104,6 +104,13 @@ func (cw *CertWatcher) Start(ctx context.Context) error { } } +// Watch used to read events from the watcher's channel and reacts to changes, +// it has currently no function and it's left here for backward compatibility until a future release. +// +// Deprecated: fsnotify has been removed and Start() is now polling instead. +func (cw *CertWatcher) Watch() { +} + // updateCachedCertificate checks if the new certificate differs from the cache, // updates it and returns the result if it was updated or not func (cw *CertWatcher) updateCachedCertificate(cert *tls.Certificate, keyPEMBlock []byte) bool {