Skip to content

Commit

Permalink
added comment for api server tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr authored and medyagh committed Jul 9, 2024
1 parent 2c47ee1 commit 177f4f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ func (k *Bootstrapper) tunnelToAPIServer(cfg config.ClusterConfig) error {
if cfg.APIServerPort == 0 {
return fmt.Errorf("apiserver port not set")
}
// An API server tunnel is only needed for QEMU w/ builtin network, for
// everything else return
if !driver.IsQEMU(cfg.Driver) || !network.IsBuiltinQEMU(cfg.Network) {
return nil
}
Expand Down

0 comments on commit 177f4f2

Please sign in to comment.