From ce998a04ecb56c6d9507e0b8ceffc9fb0ccaf154 Mon Sep 17 00:00:00 2001 From: nicufk <89570185+nicufk@users.noreply.github.com> Date: Wed, 15 Dec 2021 12:20:37 +0200 Subject: [PATCH] fix(dashboard): change dashboard url (#649) --- cmd/kubectl-testkube/commands/constants.go | 10 +++++----- cmd/kubectl-testkube/commands/dashboard.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/kubectl-testkube/commands/constants.go b/cmd/kubectl-testkube/commands/constants.go index 0ffedf39ee9..aa87b157a57 100644 --- a/cmd/kubectl-testkube/commands/constants.go +++ b/cmd/kubectl-testkube/commands/constants.go @@ -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 ) diff --git a/cmd/kubectl-testkube/commands/dashboard.go b/cmd/kubectl-testkube/commands/dashboard.go index b880364080c..a82e80ebbbc 100644 --- a/cmd/kubectl-testkube/commands/dashboard.go +++ b/cmd/kubectl-testkube/commands/dashboard.go @@ -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()