Skip to content

Commit

Permalink
add watch deprecated to certwatcher
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <vince@prigna.com>
  • Loading branch information
vincepri committed Dec 2, 2024
1 parent 0823530 commit 176b142
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/certwatcher/certwatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ 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 compability until a future release.
//
// Deprecated: fsnotify has been removed and Start() is now polling instead.
func (cw *CertWatcher) Watch() {
return
}

// 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 {
Expand Down

0 comments on commit 176b142

Please sign in to comment.