diff --git a/pkg/collector/parser/receiver_otlp.go b/pkg/collector/parser/receiver_otlp.go index 292df6862c..0cc00b5392 100644 --- a/pkg/collector/parser/receiver_otlp.go +++ b/pkg/collector/parser/receiver_otlp.go @@ -28,7 +28,6 @@ const ( parserNameOTLP = "__otlp" defaultOTLPGRPCPort int32 = 4317 - defaultOTLPGRPCLegacyPort int32 = 55680 defaultOTLPHTTPPort int32 = 55681 ) @@ -71,11 +70,6 @@ func (o *OTLPReceiverParser) Ports() ([]corev1.ServicePort, error) { Port: defaultOTLPGRPCPort, TargetPort: intstr.FromInt(int(defaultOTLPGRPCPort)), }, - { - Name: portName(fmt.Sprintf("%s-grpc-legacy", o.name), defaultOTLPGRPCLegacyPort), - Port: defaultOTLPGRPCLegacyPort, - TargetPort: intstr.FromInt(int(defaultOTLPGRPCPort)), // we target the official port, not the legacy - }, }, }, { diff --git a/pkg/collector/parser/receiver_otlp_test.go b/pkg/collector/parser/receiver_otlp_test.go index c5132060ec..112d268382 100644 --- a/pkg/collector/parser/receiver_otlp_test.go +++ b/pkg/collector/parser/receiver_otlp_test.go @@ -65,7 +65,6 @@ func TestOTLPExposeDefaultPorts(t *testing.T) { seen bool }{ "otlp-grpc": {portNumber: 4317}, - "otlp-grpc-legacy": {portNumber: 55680}, } // test @@ -73,7 +72,7 @@ func TestOTLPExposeDefaultPorts(t *testing.T) { // verify assert.NoError(t, err) - assert.Len(t, ports, 2) + assert.Len(t, ports, 1) for _, port := range ports { r := expectedResults[port.Name]