mirror of https://github.com/k3s-io/k3s
Rename a function according to go convention
parent
1395b0fbf0
commit
df9da65939
|
@ -30,8 +30,8 @@ type HealthChecker interface {
|
|||
HealthCheck(container api.Container) (Status, error)
|
||||
}
|
||||
|
||||
// MakeHealthChecker creates a new HealthChecker.
|
||||
func MakeHealthChecker() HealthChecker {
|
||||
// NewHealthChecker creates a new HealthChecker which supports multiple types of liveness probes.
|
||||
func NewHealthChecker() HealthChecker {
|
||||
return &MuxHealthChecker{
|
||||
checkers: map[string]HealthChecker{
|
||||
"http": &HTTPHealthChecker{
|
||||
|
|
|
@ -139,7 +139,7 @@ func (kl *Kubelet) RunKubelet(dockerEndpoint, configPath, manifestURL, etcdServe
|
|||
}
|
||||
go util.Forever(func() { s.ListenAndServe() }, 0)
|
||||
}
|
||||
kl.HealthChecker = health.MakeHealthChecker()
|
||||
kl.HealthChecker = health.NewHealthChecker()
|
||||
kl.syncLoop(updateChannel, kl)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue