From 481ef1a54c5f874065404c1be051ea3944331e9a Mon Sep 17 00:00:00 2001 From: Chuck Ha Date: Fri, 5 Jul 2019 10:28:33 -0400 Subject: [PATCH] more accurate naming Signed-off-by: Chuck Ha --- kind/actions/cluster_actions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kind/actions/cluster_actions.go b/kind/actions/cluster_actions.go index 9b9176c..384b461 100644 --- a/kind/actions/cluster_actions.go +++ b/kind/actions/cluster_actions.go @@ -179,12 +179,12 @@ func KubeadmInit(clusterName, version string) error { } // save the kubeconfig on the host with the loadbalancer endpoint - _, hostPort, err := GetLoadBalancerHostAndPort(allNodes) + _, loadBalancerPort, err := GetLoadBalancerHostAndPort(allNodes) if err != nil { return errors.Wrap(err, "failed to get kubeconfig from node") } dest := KubeConfigPath(clusterName) - if err := writeKubeConfig(node, dest, "127.0.0.1", hostPort); err != nil { + if err := writeKubeConfig(node, dest, "127.0.0.1", loadBalancerPort); err != nil { return errors.Wrap(err, "failed to get kubeconfig from node") } return nil