提交 d7813e91 编写于 作者: S Sharif Elgamal

ControlPaneEndpoint -> ControlPlaneEndpoint

上级 f7febd6a
......@@ -222,7 +222,7 @@ func status(api libmachine.API, cc config.ClusterConfig, n config.Node) (*Status
return st, nil
}
hostname, _, port, err := driver.ControlPaneEndpoint(&cc, &n, host.DriverName)
hostname, _, port, err := driver.ControlPlaneEndpoint(&cc, &n, host.DriverName)
if err != nil {
glog.Errorf("forwarded endpoint: %v", err)
st.Kubeconfig = Misconfigured
......
......@@ -366,7 +366,7 @@ func (k *Bootstrapper) WaitForNode(cfg config.ClusterConfig, n config.Node, time
out.T(out.HealthCheck, "Verifying Kubernetes components...")
// TODO: #7706: for better performance we could use k.client inside minikube to avoid asking for external IP:PORT
hostname, _, port, err := driver.ControlPaneEndpoint(&cfg, &n, cfg.Driver)
hostname, _, port, err := driver.ControlPlaneEndpoint(&cfg, &n, cfg.Driver)
if err != nil {
return errors.Wrap(err, "get control plane endpoint")
}
......@@ -513,7 +513,7 @@ func (k *Bootstrapper) restartCluster(cfg config.ClusterConfig) error {
return errors.Wrap(err, "primary control plane")
}
hostname, _, port, err := driver.ControlPaneEndpoint(&cfg, &cp, cfg.Driver)
hostname, _, port, err := driver.ControlPlaneEndpoint(&cfg, &cp, cfg.Driver)
if err != nil {
return errors.Wrap(err, "control plane")
}
......
......@@ -24,8 +24,8 @@ import (
"k8s.io/minikube/pkg/minikube/constants"
)
// ControlPaneEndpoint returns the location where callers can reach this cluster
func ControlPaneEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName string) (string, net.IP, int, error) {
// ControlPlaneEndpoint returns the location where callers can reach this cluster
func ControlPlaneEndpoint(cc *config.ClusterConfig, cp *config.Node, driverName string) (string, net.IP, int, error) {
if NeedsPortForward(driverName) {
port, err := oci.ForwardedPort(cc.Driver, cc.Name, cp.Port)
hostname := oci.DefaultBindIPV4
......
......@@ -119,7 +119,7 @@ func Running(name string) ClusterController {
exit.WithError("Unable to get command runner", err)
}
hostname, ip, port, err := driver.ControlPaneEndpoint(cc, &cp, host.DriverName)
hostname, ip, port, err := driver.ControlPlaneEndpoint(cc, &cp, host.DriverName)
if err != nil {
exit.WithError("Unable to get forwarded endpoint", err)
}
......
......@@ -312,7 +312,7 @@ func setupKubeconfig(h *host.Host, cc *config.ClusterConfig, n *config.Node, clu
}
func apiServerURL(h host.Host, cc config.ClusterConfig, n config.Node) (string, error) {
hostname, _, port, err := driver.ControlPaneEndpoint(&cc, &n, h.DriverName)
hostname, _, port, err := driver.ControlPlaneEndpoint(&cc, &n, h.DriverName)
if err != nil {
return "", err
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册