diff --git a/component/otelcol/exporter/loadbalancing/loadbalancing.go b/component/otelcol/exporter/loadbalancing/loadbalancing.go index e6b7dc836a06..3a8c2f87fdd0 100644 --- a/component/otelcol/exporter/loadbalancing/loadbalancing.go +++ b/component/otelcol/exporter/loadbalancing/loadbalancing.go @@ -224,7 +224,7 @@ func (args *KubernetesResolver) SetToDefault() { func (k8sSvcResolver *KubernetesResolver) Convert() loadbalancingexporter.K8sSvcResolver { return loadbalancingexporter.K8sSvcResolver{ Service: k8sSvcResolver.Service, - Ports: k8sSvcResolver.Ports, + Ports: append([]int32{}, k8sSvcResolver.Ports...), } }