From 92e63b59916a80c98cfa1d7c076c2c2ecf4c3b78 Mon Sep 17 00:00:00 2001 From: corneredrat Date: Sat, 4 Feb 2023 21:14:20 +0530 Subject: [PATCH] move node endpoints initialization to separate section --- pkg/healthchecker/types/types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/healthchecker/types/types.go b/pkg/healthchecker/types/types.go index 981027c4..a59ae08f 100644 --- a/pkg/healthchecker/types/types.go +++ b/pkg/healthchecker/types/types.go @@ -52,6 +52,10 @@ var ( ) func init() { + setKubeEndpoints() +} + +func setKubeEndpoints() { var o string hostIP := "127.0.0.1" @@ -73,6 +77,7 @@ func init() { KubeletHealthCheckEndpoint = fmt.Sprintf("http://%s:%s/healthz", hostIP, kubeletPort) KubeProxyHealthCheckEndpoint = fmt.Sprintf("http://%s:%s/healthz", hostIP, kubeProxyPort) + } type HealthChecker interface {