Skip to content

Commit

Permalink
Print the free port when install with k3d
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Apr 14, 2022
1 parent 24b743e commit 1393197
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kubectl-plugin/install/k3d.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ func (o *k3dOption) runE(cmd *cobra.Command, args []string) (err error) {
if o.printCommand {
fmt.Println("k3d", k3dArgs)
}
err = common.ExecCommand("k3d", k3dArgs...)
if err = common.ExecCommand("k3d", k3dArgs...); err == nil {
cmd.Println("Now, you can visit your cluster with these ports:", ports)
}
return
}

Expand Down

0 comments on commit 1393197

Please sign in to comment.