Fix documentation
This commit is contained in:
parent
20a89480f0
commit
870b89c72b
2 changed files with 4 additions and 4 deletions
|
@ -136,12 +136,12 @@ func (cm *Controller) IncReloadErrorCount() {
|
|||
cm.reloadOperationErrors.With(cm.constLabels).Inc()
|
||||
}
|
||||
|
||||
// OnStartedLeading indicates the pod is not the current leader
|
||||
// OnStartedLeading indicates the pod was elected as the leader
|
||||
func (cm *Controller) OnStartedLeading(electionID string) {
|
||||
cm.leaderElection.WithLabelValues(electionID).Set(0)
|
||||
}
|
||||
|
||||
// OnStoppedLeading indicates the pod is not the current leader
|
||||
// OnStoppedLeading indicates the pod stopped being the leader
|
||||
func (cm *Controller) OnStoppedLeading(electionID string) {
|
||||
cm.leaderElection.WithLabelValues(electionID).Set(1.0)
|
||||
}
|
||||
|
|
|
@ -151,12 +151,12 @@ func (c *collector) SetHosts(hosts sets.String) {
|
|||
c.socket.SetHosts(hosts)
|
||||
}
|
||||
|
||||
// OnStartedLeading indicates the pod is not the current leader
|
||||
// OnStartedLeading indicates the pod was elected as the leader
|
||||
func (c *collector) OnStartedLeading(electionID string) {
|
||||
c.ingressController.OnStartedLeading(electionID)
|
||||
}
|
||||
|
||||
// OnStoppedLeading indicates the pod is not the current leader
|
||||
// OnStoppedLeading indicates the pod stopped being the leader
|
||||
func (c *collector) OnStoppedLeading(electionID string) {
|
||||
c.ingressController.OnStoppedLeading(electionID)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue