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()