We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dec27e3 + 2120640 commit a7489c1Copy full SHA for a7489c1
cmd/minikube/cmd/start.go
@@ -1118,6 +1118,20 @@ func validateFlags(cmd *cobra.Command, drvName string) {
1118
}
1119
1120
1121
+ if driver.IsSSH(drvName) {
1122
+ sshIPAddress := viper.GetString(sshIPAddress)
1123
+ if sshIPAddress == "" {
1124
+ exit.Message(reason.Usage, "No IP address provided. Try specifying --ssh-ip-address, or see https://minikube.sigs.k8s.io/docs/drivers/ssh/")
1125
+ }
1126
+
1127
+ if net.ParseIP(sshIPAddress) == nil {
1128
+ _, err := net.LookupIP(sshIPAddress)
1129
+ if err != nil {
1130
+ exit.Error(reason.Usage, "Could not resolve IP address", err)
1131
1132
1133
1134
1135
// validate kubeadm extra args
1136
if invalidOpts := bsutil.FindInvalidExtraConfigFlags(config.ExtraOptions); len(invalidOpts) > 0 {
1137
out.WarningT(
0 commit comments