fixed healthchecker start even if disabled, simplified label parsing

This commit is contained in:
yusing
2024-11-11 06:34:12 +08:00
parent 2951304647
commit c07f2ed722
11 changed files with 158 additions and 290 deletions

View File

@@ -14,8 +14,8 @@ type HealthCheckConfig struct {
Timeout time.Duration `json:"timeout" yaml:"timeout"`
}
func DefaultHealthCheckConfig() HealthCheckConfig {
return HealthCheckConfig{
func DefaultHealthCheckConfig() *HealthCheckConfig {
return &HealthCheckConfig{
Interval: common.HealthCheckIntervalDefault,
Timeout: common.HealthCheckTimeoutDefault,
}