From f601956af93dd359d622c6bd4df96099c698760a Mon Sep 17 00:00:00 2001 From: corneredrat Date: Wed, 1 Feb 2023 21:43:53 +0530 Subject: [PATCH] name var for env keys appropriately --- pkg/healthchecker/types/types.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/healthchecker/types/types.go b/pkg/healthchecker/types/types.go index d470f01e..981027c4 100644 --- a/pkg/healthchecker/types/types.go +++ b/pkg/healthchecker/types/types.go @@ -41,9 +41,9 @@ const ( LogPatternFlagSeparator = ":" - nodeEnvKey = "HOST_IP" - kubeletPort = "KUBELET_PORT" - kubeProxyPort = "KUBEPROXY_PORT" + nodeEnvKey = "HOST_IP" + kubeletPortKey = "KUBELET_PORT" + kubeProxyPortKey = "KUBEPROXY_PORT" ) var ( @@ -62,11 +62,11 @@ func init() { if o != "" { hostIP = o } - o = os.Getenv(kubeletPort) + o = os.Getenv(kubeletPortKey) if o != "" { kubeletPort = o } - o = os.Getenv(kubeProxyPort) + o = os.Getenv(kubeProxyPortKey) if o != "" { kubeProxyPort = o }