Only the leader updates metrics for SSL certificate expiration
This commit is contained in:
parent
870b89c72b
commit
f4e4335d8c
4 changed files with 44 additions and 16 deletions
|
|
@ -159,4 +159,5 @@ func (c *collector) OnStartedLeading(electionID string) {
|
|||
// OnStoppedLeading indicates the pod stopped being the leader
|
||||
func (c *collector) OnStoppedLeading(electionID string) {
|
||||
c.ingressController.OnStoppedLeading(electionID)
|
||||
c.ingressController.RemoveAllSSLExpireMetrics(c.registry)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue