Commit 4ad3d0b 1 parent 35d8891 commit 4ad3d0b Copy full SHA for 4ad3d0b
File tree 3 files changed +13
-1
lines changed
cmd/operator-opamp-bridge/agent
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -139,12 +139,22 @@ func getConfigHash(key, file string) string {
139
139
return fmt .Sprintf ("%s%d" , key , size )
140
140
}
141
141
142
+ var _ client.OpAMPClient = & mockOpampClient {}
143
+
142
144
type mockOpampClient struct {
143
145
lastStatus * protobufs.RemoteConfigStatus
144
146
lastEffectiveConfig * protobufs.EffectiveConfig
145
147
settings types.StartSettings
146
148
}
147
149
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
+
148
158
func (m * mockOpampClient ) RequestConnectionSettings (request * protobufs.ConnectionSettingsRequest ) error {
149
159
return nil
150
160
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ require (
17
17
github.com/mitchellh/mapstructure v1.5.0
18
18
github.com/oklog/run v1.1.0
19
19
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
21
21
github.com/openshift/api v0.0.0-20240124164020-e2ce40831f2e
22
22
github.com/operator-framework/operator-lib v0.12.0
23
23
github.com/prometheus-operator/prometheus-operator v0.71.2
Original file line number Diff line number Diff line change @@ -518,6 +518,8 @@ github.com/onsi/gomega v1.30.0 h1:hvMK7xYz4D3HapigLTeGdId/NcfQx1VHMJc60ew99+8=
518
518
github.com/onsi/gomega v1.30.0 /go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ =
519
519
github.com/open-telemetry/opamp-go v0.12.0 h1:N97R8BY5FfaB9SzG5pURrOfXQk7MT9a4RD8oERlii5o =
520
520
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 =
521
523
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U =
522
524
github.com/opencontainers/go-digest v1.0.0 /go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM =
523
525
github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM =
You can’t perform that action at this time.
0 commit comments