Skip to content

Commit 2bcd839

Browse files
committed
add watch deprecated to certwatcher
Signed-off-by: Vince Prignano <[email protected]>
1 parent f655000 commit 2bcd839

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: pkg/certwatcher/certwatcher.go

+8
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ 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 compability until a future release.
109+
//
110+
// Deprecated: fsnotify has been removed and Start() is now polling instead.
111+
func (cw *CertWatcher) Watch() {
112+
return
113+
}
114+
107115
// updateCachedCertificate checks if the new certificate differs from the cache,
108116
// updates it and returns the result if it was updated or not
109117
func (cw *CertWatcher) updateCachedCertificate(cert *tls.Certificate, keyPEMBlock []byte) bool {

0 commit comments

Comments
 (0)