Skip to content

Commit f601956

Browse files
author
corneredrat
committed
name var for env keys appropriately
1 parent 2415e30 commit f601956

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/healthchecker/types/types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ const (
4141

4242
LogPatternFlagSeparator = ":"
4343

44-
nodeEnvKey = "HOST_IP"
45-
kubeletPort = "KUBELET_PORT"
46-
kubeProxyPort = "KUBEPROXY_PORT"
44+
nodeEnvKey = "HOST_IP"
45+
kubeletPortKey = "KUBELET_PORT"
46+
kubeProxyPortKey = "KUBEPROXY_PORT"
4747
)
4848

4949
var (
@@ -62,11 +62,11 @@ func init() {
6262
if o != "" {
6363
hostIP = o
6464
}
65-
o = os.Getenv(kubeletPort)
65+
o = os.Getenv(kubeletPortKey)
6666
if o != "" {
6767
kubeletPort = o
6868
}
69-
o = os.Getenv(kubeProxyPort)
69+
o = os.Getenv(kubeProxyPortKey)
7070
if o != "" {
7171
kubeProxyPort = o
7272
}

0 commit comments

Comments
 (0)