Skip to content

Commit 2085acc

Browse files
committedDec 2, 2024··
add watch deprecated to certwatcher
Signed-off-by: Vince Prignano <[email protected]>
1 parent 0823530 commit 2085acc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎pkg/certwatcher/certwatcher.go

+7
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ func (cw *CertWatcher) Start(ctx context.Context) error {
104104
}
105105
}
106106

107+
// Watch used to read events from the watcher's channel and reacts to changes,
108+
// it has currently no function and it's left here for backward compatibility until a future release.
109+
//
110+
// Deprecated: fsnotify has been removed and Start() is now polling instead.
111+
func (cw *CertWatcher) Watch() {
112+
}
113+
107114
// updateCachedCertificate checks if the new certificate differs from the cache,
108115
// updates it and returns the result if it was updated or not
109116
func (cw *CertWatcher) updateCachedCertificate(cert *tls.Certificate, keyPEMBlock []byte) bool {

0 commit comments

Comments
 (0)
Please sign in to comment.