remove _ssl_expire_time_seconds metric by identifier (#11239)

Signed-off-by: xiayu.lyt <xiayu.lyt@alibaba-inc.com>
Co-authored-by: xiayu.lyt <xiayu.lyt@alibaba-inc.com>
This commit is contained in:
k8s-infra-cherrypick-robot 2024-04-09 04:20:34 -07:00 committed by GitHub
parent d44e727fb3
commit a5fe09e80e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 31 additions and 17 deletions

View file

@ -250,9 +250,8 @@ func (n *NGINXController) syncIngress(interface{}) error {
}
ri := utilingress.GetRemovedIngresses(n.runningConfig, pcfg)
re := utilingress.GetRemovedHosts(n.runningConfig, pcfg)
rc := utilingress.GetRemovedCertificateSerialNumbers(n.runningConfig, pcfg)
n.metricCollector.RemoveMetrics(ri, re, rc)
n.metricCollector.RemoveMetrics(ri, rc)
n.runningConfig = pcfg