Set non-local traffic message as a Tip message
To stay consistent with other messages. Also moved it above the warning message regarding what IP is set as listen-address to make more sense in the message flow.pull/10653/head
parent
29a7145e9d
commit
0d1d169bf6
|
@ -42,6 +42,7 @@ import (
|
|||
"k8s.io/minikube/pkg/minikube/download"
|
||||
"k8s.io/minikube/pkg/minikube/driver"
|
||||
"k8s.io/minikube/pkg/minikube/out"
|
||||
"k8s.io/minikube/pkg/minikube/style"
|
||||
"k8s.io/minikube/pkg/minikube/sysinit"
|
||||
"k8s.io/minikube/pkg/util/retry"
|
||||
)
|
||||
|
@ -105,9 +106,9 @@ func (d *Driver) Create() error {
|
|||
|
||||
listAddr := oci.DefaultBindIPV4
|
||||
if d.NodeConfig.ListenAddress != "" && d.NodeConfig.ListenAddress != listAddr {
|
||||
out.Step(style.Tip, "Minikube is not meant for production use. You are opening non-local traffic")
|
||||
out.WarningT("Listening to {{.listenAddr}}. This is not recommended and can cause a security vulnerability. Use at your own risk",
|
||||
out.V{"listenAddr": d.NodeConfig.ListenAddress})
|
||||
out.Infof("minikube is not meant for production use. you are opening non-local traffic")
|
||||
listAddr = d.NodeConfig.ListenAddress
|
||||
} else if oci.IsExternalDaemonHost(drv) {
|
||||
out.WarningT("Listening to 0.0.0.0 on external docker host {{.host}}. Please be advised",
|
||||
|
|
Loading…
Reference in New Issue