Skip to content

Commit

Permalink
Merge branch 'main' into fharper/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper authored Oct 23, 2023
2 parents 48fd4dc + 6d663d7 commit f1ee044
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/k3d/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func runK3d(cmd *cobra.Command, args []string) error {

segClient := segment.InitClient(clusterId, clusterTypeFlag, gitProviderFlag)
defer segClient.Client.Close()
telemetry.SendEvent(segClient, telemetry.InitStarted, "")
telemetry.SendEvent(segClient, telemetry.ClusterInstallStarted, "")

// Progress output
progressPrinter.AddTracker("preflight-checks", "Running preflight checks", 5)
Expand Down Expand Up @@ -453,7 +453,7 @@ func runK3d(cmd *cobra.Command, args []string) error {
viper.Set("kbot.username", "kbot")
viper.Set("kubefirst-checks.kbot-setup", true)
viper.WriteConfig()
telemetry.SendEvent(segClient, telemetry.KbotSetupCompleted, err.Error())
telemetry.SendEvent(segClient, telemetry.KbotSetupCompleted, "")
log.Info().Msg("kbot-setup complete")
progressPrinter.IncrementTracker("preflight-checks", 1)
} else {
Expand Down
5 changes: 2 additions & 3 deletions internal/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ import (
"github.com/kubefirst/kubefirst/internal/types"
)


func GetConsoleIngresUrl() string {

if strings.ToLower(os.Getenv("K1_LOCAL_DEBUG")) != "true" { //allow using local console running on port 3000
if strings.ToLower(os.Getenv("K1_LOCAL_DEBUG")) == "true" { //allow using local console running on port 3000
return "http://localhost:3000"
}
}

return "https://console.kubefirst.dev"
}
Expand Down

0 comments on commit f1ee044

Please sign in to comment.