Skip to content

Commit

Permalink
Merge pull request #3037 from kubernetes-sigs/backport019-watch
Browse files Browse the repository at this point in the history
🌱 add deprecated Watch() to certwatcher
  • Loading branch information
k8s-ci-robot authored Dec 2, 2024
2 parents 0823530 + 2085acc commit 3e66810
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/certwatcher/certwatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3e66810

Please sign in to comment.