Skip to content

Commit ee76a45

Browse files
authored
pause for minikube tunnel setup on mac/windows (#175)
1 parent ebc71ef commit ee76a45

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pkg/minikube/minikube.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ func SetUp(name string) error {
3939
if err := createMinikubeCluster(); err != nil {
4040
return fmt.Errorf("creating cluster: %w", err)
4141
}
42+
if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
43+
fmt.Print("\n")
44+
fmt.Println("To finish setting up networking for minikube, run the following command in a separate terminal window:")
45+
fmt.Println(" minikube tunnel --profile minikube-knative")
46+
fmt.Println("\nPress the Enter key to continue")
47+
fmt.Scanln()
48+
}
4249
if err := install.Serving(); err != nil {
4350
return fmt.Errorf("install serving: %w", err)
4451
}
@@ -56,12 +63,6 @@ func SetUp(name string) error {
5663
fmt.Printf("🚀 Knative install took: %s \n", finish)
5764
fmt.Println("🎉 Now have some fun with Serverless and Event Driven Apps!")
5865

59-
if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
60-
fmt.Print("\n")
61-
fmt.Println("To finish setting up networking for minikube, run the following command in a separate terminal window:")
62-
fmt.Println(" minikube tunnel --profile minikube-knative")
63-
}
64-
6566
return nil
6667
}
6768

0 commit comments

Comments
 (0)