Refactor to add SSLCert as a field in server type
This commit is contained in:
parent
3b0d225186
commit
2751cbf06d
5 changed files with 27 additions and 43 deletions
|
|
@ -114,7 +114,7 @@ func ConfigSuccessTime() {
|
|||
func setSSLExpireTime(servers []*ingress.Server) {
|
||||
for _, s := range servers {
|
||||
if s.Hostname != defServerName {
|
||||
sslExpireTime.WithLabelValues(s.Hostname).Set(float64(s.SSLExpireTime.Unix()))
|
||||
sslExpireTime.WithLabelValues(s.Hostname).Set(float64(s.SSLCert.ExpireTime.Unix()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue