From b09f30accbf04e05153f3bf619ba3981e3925996 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Wed, 28 Jun 2023 13:10:21 +0530 Subject: [PATCH] Revert "Telemetry: Send preset value to telemetry" This reverts commit 275b2ad7a889d60913da61207cb64d31ae06a98e. Previous commit take care of sending the preset value for each event and now we don't require it only for start action. --- pkg/crc/machine/start.go | 1 - pkg/crc/telemetry/telemetry.go | 5 ----- 2 files changed, 6 deletions(-) diff --git a/pkg/crc/machine/start.go b/pkg/crc/machine/start.go index 6c74a4bcd0..a338e4ee53 100644 --- a/pkg/crc/machine/start.go +++ b/pkg/crc/machine/start.go @@ -269,7 +269,6 @@ func (client *client) Start(ctx context.Context, startConfig types.StartConfig) telemetry.SetCPUs(ctx, startConfig.CPUs) telemetry.SetMemory(ctx, uint64(startConfig.Memory)*1024*1024) telemetry.SetDiskSize(ctx, uint64(startConfig.DiskSize)*1024*1024*1024) - telemetry.SetPreset(ctx, startConfig.Preset) if err := client.validateStartConfig(startConfig); err != nil { return nil, err diff --git a/pkg/crc/telemetry/telemetry.go b/pkg/crc/telemetry/telemetry.go index 9879b76c6b..338b6c0208 100644 --- a/pkg/crc/telemetry/telemetry.go +++ b/pkg/crc/telemetry/telemetry.go @@ -7,7 +7,6 @@ import ( "sync" "github.com/crc-org/crc/pkg/crc/constants" - crcpreset "github.com/crc-org/crc/pkg/crc/preset" ) type contextKey struct{} @@ -78,10 +77,6 @@ func SetConfigurationKey(ctx context.Context, value string) { setContextProperty(ctx, "key", value) } -func SetPreset(ctx context.Context, value crcpreset.Preset) { - setContextProperty(ctx, "preset", value) -} - func SetStartType(ctx context.Context, value StartType) { setContextProperty(ctx, "start-type", value) }