Skip to content

Commit 48c2ddc

Browse files
dmitryaxjelly-afk
authored andcommitted
[chore] Upgrade prometheus and k8s dependencies (open-telemetry#43890)
Both k8s and prometheus libraries have to be updated because they depend on each other and both have breaking changes. The following files changed to adopt to the API breaking changes: - processor/k8sattributesprocessor/internal/kube/fake_informer.go: - kubernetes/kubernetes#126387 - receiver/prometheusreceiver/metrics_receiver.go: - prometheus/prometheus#16257 - receiver/prometheusremotewritereceiver/receiver.go: - prometheus/prometheus#17160 I haven't touched any usages of deprecated k8s API to keep the changeset small. Created a separate issue for that instead open-telemetry#43891 Some prometheus tests are failing due to behavioral change in prometheus library. I skipped them for now and reported open-telemetry#43893
1 parent 5a3bd88 commit 48c2ddc

File tree

96 files changed

+3082
-3064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+3082
-3064
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog)
7+
component: internal/aws
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Upgrade k8s libraries from v0.32.x to v0.34.x
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [43890]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: []

.github/workflows/prometheus-compliance-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ jobs:
6464
- name: Run compliance tests
6565
run: |
6666
set -o pipefail && \
67-
go test -v --tags=compliance -run "TestRemoteWrite/otel/.+" ./ |& tee ./test-report.txt
67+
# Skipping Staleness test until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/43893 is resolved
68+
go test -v --tags=compliance -run "TestRemoteWrite/otel/.+" -skip "TestRemoteWrite/otelcollector/Staleness" ./ |& tee ./test-report.txt
6869
working-directory: compliance/remotewrite/sender

cmd/opampsupervisor/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ require (
7272
github.com/google/flatbuffers v25.2.10+incompatible // indirect
7373
github.com/google/go-tpm v0.9.6 // indirect
7474
github.com/gorilla/mux v1.8.1 // indirect
75-
github.com/gorilla/websocket v1.5.3 // indirect
75+
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
7676
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
7777
github.com/hashicorp/go-version v1.7.0 // indirect
7878
github.com/hashicorp/golang-lru v1.0.2 // indirect
@@ -238,7 +238,7 @@ require (
238238
golang.org/x/tools v0.38.0 // indirect
239239
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
240240
gonum.org/v1/gonum v0.16.0 // indirect
241-
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5 // indirect
241+
google.golang.org/genproto/googleapis/api v0.0.0-20250929231259-57b25ae835d4 // indirect
242242
google.golang.org/genproto/googleapis/rpc v0.0.0-20250922171735-9219d122eba9 // indirect
243243
google.golang.org/grpc v1.76.0 // indirect
244244
gopkg.in/yaml.v2 v2.4.0 // indirect

cmd/opampsupervisor/go.sum

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connector/datadogconnector/go.mod

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ require (
168168
github.com/ebitengine/purego v0.9.0 // indirect
169169
github.com/elastic/go-grok v0.3.1 // indirect
170170
github.com/elastic/lunes v0.1.0 // indirect
171-
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
171+
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
172172
github.com/fatih/color v1.18.0 // indirect
173173
github.com/felixge/httpsnoop v1.0.4 // indirect
174174
github.com/foxboron/go-tpm-keyfiles v0.0.0-20250903184740-5d135037bd4d // indirect
175175
github.com/fsnotify/fsnotify v1.9.0 // indirect
176-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
176+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
177177
github.com/go-logr/logr v1.4.3 // indirect
178178
github.com/go-logr/stdr v1.2.2 // indirect
179179
github.com/go-ole/go-ole v1.3.0 // indirect
@@ -189,9 +189,8 @@ require (
189189
github.com/golang/mock v1.7.0-rc.1 // indirect
190190
github.com/golang/protobuf v1.5.4 // indirect
191191
github.com/golang/snappy v1.0.0 // indirect
192-
github.com/google/gnostic-models v0.6.8 // indirect
192+
github.com/google/gnostic-models v0.7.0 // indirect
193193
github.com/google/go-tpm v0.9.6 // indirect
194-
github.com/google/gofuzz v1.2.0 // indirect
195194
github.com/google/uuid v1.6.0 // indirect
196195
github.com/gorilla/mux v1.8.1 // indirect
197196
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
@@ -234,7 +233,7 @@ require (
234233
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl v0.138.0 // indirect
235234
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry v0.138.0 // indirect
236235
github.com/openshift/api v3.9.0+incompatible // indirect
237-
github.com/openshift/client-go v0.0.0-20241203091221-452dfb8fa071 // indirect
236+
github.com/openshift/client-go v0.0.0-20251015124057-db0dee36e235 // indirect
238237
github.com/outcaste-io/ristretto v0.2.3 // indirect
239238
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
240239
github.com/pelletier/go-toml v1.9.5 // indirect
@@ -362,14 +361,15 @@ require (
362361
gopkg.in/ini.v1 v1.67.0 // indirect
363362
gopkg.in/yaml.v2 v2.4.0 // indirect
364363
gopkg.in/yaml.v3 v3.0.1 // indirect
365-
k8s.io/api v0.32.3 // indirect
366-
k8s.io/apimachinery v0.32.3 // indirect
367-
k8s.io/client-go v0.32.3 // indirect
364+
k8s.io/api v0.34.1 // indirect
365+
k8s.io/apimachinery v0.34.1 // indirect
366+
k8s.io/client-go v0.34.1 // indirect
368367
k8s.io/klog/v2 v2.130.1 // indirect
369-
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
370-
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
371-
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
372-
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect
368+
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
369+
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect
370+
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
371+
sigs.k8s.io/randfill v1.0.0 // indirect
372+
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
373373
sigs.k8s.io/yaml v1.6.0 // indirect
374374
)
375375

connector/datadogconnector/go.sum

Lines changed: 24 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exporter/datadogexporter/go.mod

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ require (
161161
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
162162
github.com/dustin/go-humanize v1.0.1 // indirect
163163
github.com/ebitengine/purego v0.9.0 // indirect
164-
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
164+
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
165165
github.com/fatih/color v1.18.0 // indirect
166166
github.com/felixge/httpsnoop v1.0.4 // indirect
167167
github.com/foxboron/go-tpm-keyfiles v0.0.0-20250903184740-5d135037bd4d // indirect
168168
github.com/fsnotify/fsnotify v1.9.0 // indirect
169-
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
169+
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
170170
github.com/go-logr/logr v1.4.3 // indirect
171171
github.com/go-logr/stdr v1.2.2 // indirect
172172
github.com/go-ole/go-ole v1.3.0 // indirect
@@ -181,10 +181,9 @@ require (
181181
github.com/golang/mock v1.7.0-rc.1 // indirect
182182
github.com/golang/protobuf v1.5.4 // indirect
183183
github.com/golang/snappy v1.0.0 // indirect
184-
github.com/google/gnostic-models v0.6.8 // indirect
184+
github.com/google/gnostic-models v0.7.0 // indirect
185185
github.com/google/go-cmp v0.7.0 // indirect
186186
github.com/google/go-tpm v0.9.6 // indirect
187-
github.com/google/gofuzz v1.2.0 // indirect
188187
github.com/google/pprof v0.0.0-20250607225305-033d6d78b36a // indirect
189188
github.com/google/uuid v1.6.0 // indirect
190189
github.com/gorilla/mux v1.8.1 // indirect
@@ -217,7 +216,7 @@ require (
217216
github.com/open-telemetry/opentelemetry-collector-contrib/internal/metadataproviders v0.138.0 // indirect
218217
github.com/open-telemetry/opentelemetry-collector-contrib/processor/probabilisticsamplerprocessor v0.138.0 // indirect
219218
github.com/openshift/api v3.9.0+incompatible // indirect
220-
github.com/openshift/client-go v0.0.0-20241203091221-452dfb8fa071 // indirect
219+
github.com/openshift/client-go v0.0.0-20251015124057-db0dee36e235 // indirect
221220
github.com/outcaste-io/ristretto v0.2.3 // indirect
222221
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
223222
github.com/pelletier/go-toml v1.9.5 // indirect
@@ -301,14 +300,15 @@ require (
301300
gopkg.in/ini.v1 v1.67.0 // indirect
302301
gopkg.in/yaml.v2 v2.4.0 // indirect
303302
gopkg.in/yaml.v3 v3.0.1 // indirect
304-
k8s.io/api v0.32.3 // indirect
305-
k8s.io/apimachinery v0.32.3 // indirect
306-
k8s.io/client-go v0.32.3 // indirect
303+
k8s.io/api v0.34.1 // indirect
304+
k8s.io/apimachinery v0.34.1 // indirect
305+
k8s.io/client-go v0.34.1 // indirect
307306
k8s.io/klog/v2 v2.130.1 // indirect
308-
k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f // indirect
309-
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
310-
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
311-
sigs.k8s.io/structured-merge-diff/v4 v4.5.0 // indirect
307+
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
308+
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397 // indirect
309+
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
310+
sigs.k8s.io/randfill v1.0.0 // indirect
311+
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
312312
sigs.k8s.io/yaml v1.6.0 // indirect
313313
)
314314

0 commit comments

Comments
 (0)