Skip to content

Commit bdde3dd

Browse files
pause for minikube tunnel setup on mac/windows (#178)
Co-authored-by: Paul S. Schweigert <[email protected]>
1 parent 84334a5 commit bdde3dd

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
@@ -38,6 +38,13 @@ func SetUp() error {
3838
if err := createMinikubeCluster(); err != nil {
3939
return fmt.Errorf("creating cluster: %w", err)
4040
}
41+
if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
42+
fmt.Print("\n")
43+
fmt.Println("To finish setting up networking for minikube, run the following command in a separate terminal window:")
44+
fmt.Println(" minikube tunnel --profile minikube-knative")
45+
fmt.Println("\nPress the Enter key to continue")
46+
fmt.Scanln()
47+
}
4148
if err := install.Serving(); err != nil {
4249
return fmt.Errorf("install serving: %w", err)
4350
}
@@ -55,12 +62,6 @@ func SetUp() error {
5562
fmt.Printf("🚀 Knative install took: %s \n", finish)
5663
fmt.Println("🎉 Now have some fun with Serverless and Event Driven Apps!")
5764

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

0 commit comments

Comments
 (0)