feat: new deployment provider: tencentcloud gaap

This commit is contained in:
Fu Diwei
2025-06-11 19:55:21 +08:00
parent 57eb66b889
commit b833d09466
26 changed files with 424 additions and 12 deletions

View File

@@ -100,7 +100,13 @@ func (n *monitorNode) Process(ctx context.Context) error {
if validated {
n.logger.Info(fmt.Sprintf("the certificate is valid, and will expire in %d day(s)", daysLeft))
} else {
n.logger.Warn(fmt.Sprintf("the certificate is invalid", validated))
if !isCertHostMatched {
n.logger.Warn("the certificate is invalid, because it is not matched the host")
} else if !isCertPeriodValid {
n.logger.Warn("the certificate is invalid, because it is either expired or not yet valid")
} else {
n.logger.Warn("the certificate is invalid")
}
}
}
}