From 5b690c8b684da2a3a3276f78290897ee81956588 Mon Sep 17 00:00:00 2001 From: Sean Porter Date: Tue, 3 Oct 2023 11:55:12 -0700 Subject: [PATCH] cleaned up opamp config, removed duplicate endpoint (#1261) Signed-off-by: Sean Porter --- pkg/extension/opampextension/config.go | 3 --- pkg/extension/opampextension/config_test.go | 1 - 2 files changed, 4 deletions(-) diff --git a/pkg/extension/opampextension/config.go b/pkg/extension/opampextension/config.go index 86f1113307..0057e53d48 100644 --- a/pkg/extension/opampextension/config.go +++ b/pkg/extension/opampextension/config.go @@ -27,9 +27,6 @@ import ( type Config struct { confighttp.HTTPClientSettings `mapstructure:",squash"` - // Endpoint is the OpAMP server URL. Transport based on the scheme of the URL. - Endpoint string `mapstructure:"endpoint"` - // InstanceUID is a ULID formatted as a 26 character string in canonical // representation. Auto-generated on start if missing. InstanceUID string `mapstructure:"instance_uid"` diff --git a/pkg/extension/opampextension/config_test.go b/pkg/extension/opampextension/config_test.go index 7dd0bec0de..4ef631e065 100644 --- a/pkg/extension/opampextension/config_test.go +++ b/pkg/extension/opampextension/config_test.go @@ -49,7 +49,6 @@ func TestUnmarshalConfig(t *testing.T) { AuthenticatorID: component.NewID("sumologic"), }, }, - Endpoint: "wss://127.0.0.1:4320/v1/opamp", InstanceUID: "01BX5ZZKBKACTAV9WEVGEMMVRZ", RemoteConfigurationDirectory: "/tmp/", }, cfg)