Skip to content

Commit

Permalink
Log if watcher errors with !ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ycheng-kareo committed Feb 23, 2024
1 parent 71f5bb1 commit 6aff7b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admission-webhook/cert_reloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func watchCertFiles(certReloader *CertReloader) {
}
case err, ok := <-watcher.Errors:
if !ok {
logrus.Errorf("watcher error returned !ok: %v", err)
return
}
logrus.Errorf("watcher error: %v", err)
Expand Down

0 comments on commit 6aff7b8

Please sign in to comment.