Skip to content

Commit

Permalink
fix(dashboard): change dashboard url (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicufk authored Dec 15, 2021
1 parent f2ad6f9 commit ce998a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions cmd/kubectl-testkube/commands/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
)

const (
ApiServerName string = "testkube-api-server"
ApiServerPort int = 8088
DashboardURI string = "http://demo.testkube.io?apiEndpoint="
IngressControllerName string = "testkube-ing-ctrlr"
CurrentApiVersion string = apiclient.Version
ApiServerName string = "testkube-api-server"
ApiServerPort int = 8088
ApiVersion string = "v1"
DashboardURI string = "http://demo.testkube.io/apiEndpoint?apiEndpoint="
CurrentApiVersion string = apiclient.Version
)
2 changes: 1 addition & 1 deletion cmd/kubectl-testkube/commands/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewDashboardCmd() *cobra.Command {
ui.Verbose = true
ui.Logo()

dashboardAddress := fmt.Sprintf("%slocalhost:%d", DashboardURI, ApiServerPort)
dashboardAddress := fmt.Sprintf("%slocalhost:%d/%s", DashboardURI, ApiServerPort, ApiVersion)
ui.Success("The dashboard is accessible here:", dashboardAddress)
ui.Success("Port forwarding is started for the test results endpoint, hit Ctrl+C to stop")
openCmd, err := getOpenCommand()
Expand Down

0 comments on commit ce998a0

Please sign in to comment.