@@ -24,11 +24,11 @@ import (
2424 "slices"
2525 "strings"
2626
27- "github.com/spf13/viper"
2827 "k8s.io/klog/v2"
2928 "k8s.io/minikube/pkg/minikube/config"
3029 "k8s.io/minikube/pkg/minikube/driver"
3130 "k8s.io/minikube/pkg/minikube/out"
31+ "k8s.io/minikube/pkg/minikube/run"
3232 "k8s.io/minikube/pkg/minikube/style"
3333)
3434
@@ -63,7 +63,7 @@ func IsBootpdBlocked(cc config.ClusterConfig) bool {
6363}
6464
6565// UnblockBootpd adds bootpd to the built-in macOS firewall and then unblocks it
66- func UnblockBootpd () error {
66+ func UnblockBootpd (options * run. CommandOptions ) error {
6767 cmds := []* exec.Cmd {
6868 exec .Command ("sudo" , "/usr/libexec/ApplicationFirewall/socketfilterfw" , "--add" , "/usr/libexec/bootpd" ),
6969 exec .Command ("sudo" , "/usr/libexec/ApplicationFirewall/socketfilterfw" , "--unblock" , "/usr/libexec/bootpd" ),
@@ -82,7 +82,7 @@ func UnblockBootpd() error {
8282 klog .Infof ("testing: %s" , test .Args )
8383 if err := test .Run (); err != nil {
8484 klog .Infof ("%v may require a password: %v" , c .Args , err )
85- if ! viper . GetBool ( "interactive" ) {
85+ if ! options . NonInteractive {
8686 klog .Warningf ("%s requires a password, and --interactive=false" , c .Args )
8787 c .Args = slices .Insert (c .Args , 1 , "-n" )
8888 }
0 commit comments