Skip to content

Commit

Permalink
port forward to 8082
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Jun 26, 2024
1 parent 614a5b6 commit 9c0ce8f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/wsm/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package main

import (
"encoding/base64"
"github.com/spf13/cobra"
"github.com/wandb/wsm/pkg/kubectl"
"os"
"os/exec"
"runtime"
"time"

"github.com/spf13/cobra"
"github.com/wandb/wsm/pkg/kubectl"
)

func init() {
Expand Down Expand Up @@ -40,12 +41,12 @@ func ConsoleCmd() *cobra.Command {
panic(err)
}

url := "http://localhost:8080/console/login?password=" + base64.StdEncoding.EncodeToString(pwd)
url := "http://localhost:8082/console/login?password=" + base64.StdEncoding.EncodeToString(pwd)

time.AfterFunc(500*time.Millisecond, func() {
_ = openBrowser(url)
})
portForward := exec.Command("kubectl", "port-forward", "service/wandb-console", "8080:8082")
portForward := exec.Command("kubectl", "port-forward", "service/wandb-console", "8082:8082")
portForward.Stderr = os.Stderr
portForward.Stdout = os.Stdout
portForward.Stdin = os.Stdin
Expand Down

0 comments on commit 9c0ce8f

Please sign in to comment.