diff --git a/cmd/k3d/create.go b/cmd/k3d/create.go index adcbea624..ba5b60b09 100644 --- a/cmd/k3d/create.go +++ b/cmd/k3d/create.go @@ -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) @@ -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 { diff --git a/internal/cluster/cluster.go b/internal/cluster/cluster.go index 7983f9fc4..ba8a11b56 100644 --- a/internal/cluster/cluster.go +++ b/internal/cluster/cluster.go @@ -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" }