Skip to content

Commit c888491

Browse files
committed
Fix conflicts
1 parent e70295a commit c888491

File tree

4 files changed

+0
-52
lines changed

4 files changed

+0
-52
lines changed

internal/pkg/agent/application/application.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ import (
1111

1212
"go.elastic.co/apm/v2"
1313

14-
<<<<<<< HEAD
15-
=======
1614
componentmonitoring "github.com/elastic/elastic-agent/internal/pkg/agent/application/monitoring/component"
1715

18-
"github.com/elastic/go-ucfg"
19-
20-
>>>>>>> 2f0ba69f2 (Fall back to process runtime if otel runtime is unsupported (#10087))
2116
"github.com/elastic/elastic-agent-libs/logp"
2217

2318
"github.com/elastic/elastic-agent/internal/pkg/agent/application/coordinator"

internal/pkg/agent/application/coordinator/coordinator.go

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ import (
1313
"sync/atomic"
1414
"time"
1515

16-
<<<<<<< HEAD
17-
=======
18-
"github.com/elastic/elastic-agent/internal/pkg/core/backoff"
1916
"github.com/elastic/elastic-agent/internal/pkg/otel/translate"
2017

21-
>>>>>>> 2f0ba69f2 (Fall back to process runtime if otel runtime is unsupported (#10087))
2218
"go.opentelemetry.io/collector/component/componentstatus"
2319

2420
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/status"
@@ -1663,8 +1659,6 @@ func (c *Coordinator) splitModelBetweenManagers(model *component.Model) (runtime
16631659
return
16641660
}
16651661

1666-
<<<<<<< HEAD
1667-
=======
16681662
// maybeOverrideRuntimeForComponent sets the correct runtime for the given component.
16691663
// Normally, we use the runtime set in the component itself via the configuration, but
16701664
// we may also fall back to the process runtime if the otel runtime is unsupported for
@@ -1684,38 +1678,6 @@ func (c *Coordinator) maybeOverrideRuntimeForComponent(comp *component.Component
16841678
}
16851679
}
16861680

1687-
func (c *Coordinator) isFleetServer() bool {
1688-
for _, s := range c.state.Components {
1689-
if s.Component.InputType == fleetServer {
1690-
return true
1691-
}
1692-
}
1693-
return false
1694-
}
1695-
1696-
func (c *Coordinator) HasEndpoint() bool {
1697-
for _, component := range c.state.Components {
1698-
if component.Component.InputType == endpoint {
1699-
return true
1700-
}
1701-
}
1702-
1703-
return false
1704-
}
1705-
1706-
func (c *Coordinator) ackMigration(ctx context.Context, action *fleetapi.ActionMigrate, acker acker.Acker) error {
1707-
if err := acker.Ack(ctx, action); err != nil {
1708-
return fmt.Errorf("failed to ack migrate action: %w", err)
1709-
}
1710-
1711-
if err := acker.Commit(ctx); err != nil {
1712-
return fmt.Errorf("failed to commit migrate action: %w", err)
1713-
}
1714-
1715-
return nil
1716-
}
1717-
1718-
>>>>>>> 2f0ba69f2 (Fall back to process runtime if otel runtime is unsupported (#10087))
17191681
// generateComponentModel regenerates the configuration tree and
17201682
// components from the current AST and vars and returns the result.
17211683
// Called from both the main Coordinator goroutine and from external

internal/pkg/otel/translate/otelconfig.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@ import (
1111
"slices"
1212
"strings"
1313

14-
<<<<<<< HEAD
1514
"github.com/elastic/elastic-agent-libs/logp"
16-
"github.com/elastic/elastic-agent/internal/pkg/agent/application/monitoring"
1715
"github.com/elastic/elastic-agent/pkg/core/logger"
1816

19-
=======
20-
>>>>>>> 2f0ba69f2 (Fall back to process runtime if otel runtime is unsupported (#10087))
2117
koanfmaps "github.com/knadh/koanf/maps"
2218

23-
"github.com/elastic/elastic-agent-libs/logp"
2419
componentmonitoring "github.com/elastic/elastic-agent/internal/pkg/agent/application/monitoring/component"
2520

2621
otelcomponent "go.opentelemetry.io/collector/component"

internal/pkg/otel/translate/otelconfig_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -877,9 +877,6 @@ func TestGetReceiversConfigForComponent(t *testing.T) {
877877
}
878878
}
879879

880-
<<<<<<< HEAD
881-
// TODO: Add unit tests for other config generation functions
882-
=======
883880
func TestVerifyComponentIsOtelSupported(t *testing.T) {
884881
tests := []struct {
885882
name string
@@ -1003,4 +1000,3 @@ func TestVerifyComponentIsOtelSupported(t *testing.T) {
10031000
})
10041001
}
10051002
}
1006-
>>>>>>> 2f0ba69f2 (Fall back to process runtime if otel runtime is unsupported (#10087))

0 commit comments

Comments
 (0)