Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
more accurate naming
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Ha <chuckh@vmware.com>
  • Loading branch information
chuckha committed Jul 5, 2019
1 parent ac9fbc4 commit 481ef1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kind/actions/cluster_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 481ef1a

Please sign in to comment.