Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit cbbd756

Browse files
committed
leave a not on rotation
Signed-off-by: Sean Teeling <[email protected]>
1 parent 5ae28f0 commit cbbd756

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/certificate/manager.go

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ func (m *Manager) Start(checkInterval time.Duration, stop <-chan struct{}) {
5555
}
5656

5757
func (m *Manager) checkAndRotate() {
58+
// NOTE: checkAndRotate can reintroduce a certificate that has been released, thereby creating an unbounded cache.
59+
// A certificate can also have been rotated already, leaving the list of issued certs stale, and we re-rotate.
60+
// the latter is not a bug, but a source of inefficiency.
5861
for _, cert := range m.ListIssuedCertificates() {
5962
shouldRotate := cert.ShouldRotate()
6063

0 commit comments

Comments
 (0)