Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
fix: open traffic configuration directly (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y authored Aug 6, 2024
1 parent 642c75e commit 9ffdd11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion kardinal-cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ var dashboardCmd = &cobra.Command{
log.Fatal("Error getting or creating user tenant UUID", err)
}
tenantUuidStr := tenantUuid.String()
if err := multi_os_cmd_executor.OpenFile(path.Join(consts.KardinalDevURL, tenantUuidStr)); err != nil {
// TODO support local-minikube deployments
if err := multi_os_cmd_executor.OpenFile(path.Join(consts.KardinalDevURL, tenantUuidStr, consts.KardinalTrafficConfigurationSuffix)); err != nil {
log.Fatal("Error occurred opening the Kardinal dashboard", err)
}
},
Expand Down
7 changes: 4 additions & 3 deletions kardinal-cli/consts/consts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package consts

const (
KardinalAppIDLabelKey = "dev.kardinal.app-id"
KardinalManagerAppIDLabelValue = "kardinal-manager"
KardinalDevURL = "https://app.kardinal.dev"
KardinalAppIDLabelKey = "dev.kardinal.app-id"
KardinalManagerAppIDLabelValue = "kardinal-manager"
KardinalDevURL = "https://app.kardinal.dev"
KardinalTrafficConfigurationSuffix = "traffic-configuration"
)

0 comments on commit 9ffdd11

Please sign in to comment.