Skip to content

Commit 3e66810

Browse files
authored
Merge pull request #3037 from kubernetes-sigs/backport019-watch
🌱 add deprecated Watch() to certwatcher
2 parents 0823530 + 2085acc commit 3e66810

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)