Skip to content

Commit 92e63b5

Browse files
author
corneredrat
committed
move node endpoints initialization to separate section
1 parent f601956 commit 92e63b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/healthchecker/types/types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ var (
5252
)
5353

5454
func init() {
55+
setKubeEndpoints()
56+
}
57+
58+
func setKubeEndpoints() {
5559
var o string
5660

5761
hostIP := "127.0.0.1"
@@ -73,6 +77,7 @@ func init() {
7377

7478
KubeletHealthCheckEndpoint = fmt.Sprintf("http://%s:%s/healthz", hostIP, kubeletPort)
7579
KubeProxyHealthCheckEndpoint = fmt.Sprintf("http://%s:%s/healthz", hostIP, kubeProxyPort)
80+
7681
}
7782

7883
type HealthChecker interface {

0 commit comments

Comments
 (0)