Skip to content

Commit 4ad3d0b

Browse files
authored
bump to latest opamp (#2807)
1 parent 35d8891 commit 4ad3d0b

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

cmd/operator-opamp-bridge/agent/agent_test.go

+10
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,22 @@ func getConfigHash(key, file string) string {
139139
return fmt.Sprintf("%s%d", key, size)
140140
}
141141

142+
var _ client.OpAMPClient = &mockOpampClient{}
143+
142144
type mockOpampClient struct {
143145
lastStatus *protobufs.RemoteConfigStatus
144146
lastEffectiveConfig *protobufs.EffectiveConfig
145147
settings types.StartSettings
146148
}
147149

150+
func (m *mockOpampClient) SetCustomCapabilities(customCapabilities *protobufs.CustomCapabilities) error {
151+
return nil
152+
}
153+
154+
func (m *mockOpampClient) SendCustomMessage(message *protobufs.CustomMessage) (messageSendingChannel chan struct{}, err error) {
155+
return nil, nil
156+
}
157+
148158
func (m *mockOpampClient) RequestConnectionSettings(request *protobufs.ConnectionSettingsRequest) error {
149159
return nil
150160
}

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/mitchellh/mapstructure v1.5.0
1818
github.com/oklog/run v1.1.0
1919
github.com/oklog/ulid/v2 v2.1.0
20-
github.com/open-telemetry/opamp-go v0.12.0
20+
github.com/open-telemetry/opamp-go v0.14.0
2121
github.com/openshift/api v0.0.0-20240124164020-e2ce40831f2e
2222
github.com/operator-framework/operator-lib v0.12.0
2323
github.com/prometheus-operator/prometheus-operator v0.71.2

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,8 @@ github.com/onsi/gomega v1.30.0 h1:hvMK7xYz4D3HapigLTeGdId/NcfQx1VHMJc60ew99+8=
518518
github.com/onsi/gomega v1.30.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
519519
github.com/open-telemetry/opamp-go v0.12.0 h1:N97R8BY5FfaB9SzG5pURrOfXQk7MT9a4RD8oERlii5o=
520520
github.com/open-telemetry/opamp-go v0.12.0/go.mod h1:bk3WZ4RjbVdzsHT3gaPZscUdGvoz9Bi2+AvG8/5X824=
521+
github.com/open-telemetry/opamp-go v0.14.0 h1:KoziIK+wsFojhUXNTkCSTnCPf0eCMqFAaccOs0HrWIY=
522+
github.com/open-telemetry/opamp-go v0.14.0/go.mod h1:XOGCigljsLSTZ8FfLwvat0M1QDj3conIIgRa77BWrKs=
521523
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
522524
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
523525
github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM=

0 commit comments

Comments
 (0)