Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CONTINT-4412] Upgrade k8s dependencies #30061

Merged
merged 22 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
08cce79
[CONTINT-4412] Upgrade `k8s` dependencies
L3n41c Oct 11, 2024
58f6136
Comment broken KSM stuffs
L3n41c Oct 11, 2024
9b6bb98
Merge branch 'main' of ssh://github.com/DataDog/datadog-agent into le…
L3n41c Oct 19, 2024
5b37b98
Fix `LICENSE`
L3n41c Oct 20, 2024
43c4a19
Merge branch 'main' of ssh://github.com/DataDog/datadog-agent into le…
L3n41c Oct 23, 2024
d796ead
Merge branch 'main' of ssh://github.com/DataDog/datadog-agent into le…
L3n41c Oct 24, 2024
3ea4ad8
Fix KSM stuffs
L3n41c Oct 24, 2024
7babc05
Merge branch 'main' of ssh://github.com/DataDog/datadog-agent into le…
L3n41c Oct 25, 2024
75cea1a
Update deps
L3n41c Oct 25, 2024
ea3597e
Update OTEL `manifest.yaml` and run `inv collector.generate`
L3n41c Oct 28, 2024
a90ab38
Remove custom unmarshal logic and store conf as confmap.Conf
mackjmr Oct 30, 2024
1113c08
fix lint
mackjmr Oct 30, 2024
b319c61
Fix config updates
liustanley Oct 30, 2024
2556cc5
Apply suggestions from code review
L3n41c Oct 31, 2024
d622dcf
Merge branch 'main' of ssh://github.com/DataDog/datadog-agent into le…
L3n41c Oct 31, 2024
beedc1c
Update deps
L3n41c Oct 31, 2024
8f59c4a
Fix node kubelet collector mode for KSM pod metrics collection
L3n41c Nov 5, 2024
3fa9989
Merge branch 'main' of ssh://github.com/DataDog/datadog-agent into le…
L3n41c Nov 5, 2024
c82be29
Merge branch 'main' of ssh://github.com/DataDog/datadog-agent into le…
L3n41c Nov 6, 2024
8b093f8
Update deps
L3n41c Nov 7, 2024
1e05a50
Merge branch 'main' of ssh://github.com/DataDog/datadog-agent into le…
L3n41c Nov 7, 2024
4479926
Temporarily mark otel e2e tests as flaky
L3n41c Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .copyright-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,3 +376,5 @@ github.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp/grpc_gcp: Copyright 2024 gRPC
github.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp/multiendpoint: Copyright 2024 gRPC authors.

github.com/NVIDIA/go-nvml/*: Copyright 2023 NVIDIA CORPORATION

github.com/jonboulle/clockwork: Copyright 2014 Nell Boulle
8 changes: 4 additions & 4 deletions .gitlab/integration_test/otel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ integration_tests_otel:
- when: always


docker_image_build_otel:
docker_image_build_otel:
stage: integration_test
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/docker_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
needs: ["go_deps","integration_tests_otel"]
Expand All @@ -37,12 +37,12 @@ docker_image_build_otel:
- wget https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64 -O
/usr/bin/yq && chmod +x /usr/bin/yq
- export OTELCOL_VERSION=v$(/usr/bin/yq r /tmp/otel-ci/manifest.yaml dist.otelcol_version)
- yq w -i /tmp/otel-ci/manifest.yaml "receivers[+] gomod"
- yq w -i /tmp/otel-ci/manifest.yaml "receivers[+] gomod"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sobjectsreceiver ${OTELCOL_VERSION}"
- yq w -i /tmp/otel-ci/manifest.yaml "processors[+] gomod"
- yq w -i /tmp/otel-ci/manifest.yaml "processors[+] gomod"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricstransformprocessor ${OTELCOL_VERSION}"
script:
- docker build -t agent-byoc:latest -f /tmp/otel-ci/Dockerfile.agent-otel /tmp/otel-ci
- docker build --build-arg AGENT_BRANCH=$CI_COMMIT_BRANCH --tag agent-byoc:latest -f /tmp/otel-ci/Dockerfile.agent-otel /tmp/otel-ci
- OT_AGENT_IMAGE_NAME=agent-byoc OT_AGENT_TAG=latest python3 /tmp/otel-ci/otel_agent_build_tests.py
rules:
- if: $CI_PIPELINE_SOURCE =~ /^schedule.*$/
Expand Down
5 changes: 2 additions & 3 deletions Dockerfiles/agent-ot/Dockerfile.agent-otel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN apt-get update && \
&& rm -rf /var/lib/apt/lists/*

# TEMP: Use github source code
RUN git clone --depth 1 -b "${AGENT_BRANCH}" --single-branch https://github.com/DataDog/datadog-agent.git datadog-agent-${AGENT_VERSION}
RUN git clone --filter=blob:none --branch "${AGENT_BRANCH}" --single-branch https://github.com/DataDog/datadog-agent.git datadog-agent-${AGENT_VERSION}
jackgopack4 marked this conversation as resolved.
Show resolved Hide resolved

# Once we have stable releases, we can use the following code to download the source code
# TODO: use released agent version once we have an agent release with the otel binary
Expand Down Expand Up @@ -67,7 +67,7 @@ RUN go version && \
RUN python3 -m venv venv && \
. venv/bin/activate && \
pip install --upgrade pip && \
pip install -r tasks/requirements.txt
pip install -r requirements.txt

# Copy the manifest file
COPY manifest.yaml /workspace/datadog-agent-${AGENT_VERSION}/comp/otelcol/collector-contrib/impl/manifest.yaml
Expand All @@ -83,4 +83,3 @@ FROM datadog/agent:${AGENT_VERSION}
ARG AGENT_VERSION
# Copy the built OTel agent from the builder stage
COPY --from=builder /workspace/datadog-agent-${AGENT_VERSION}/bin/otel-agent/otel-agent /opt/datadog-agent/embedded/bin/otel-agent

306 changes: 174 additions & 132 deletions LICENSE-3rdparty.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cmd/cluster-agent/custommetrics/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func RunServer(ctx context.Context, apiCl *as.APIClient, datadogCl optional.Opti
return err
}
// TODO Add extra logic to only tear down the External Metrics Server if only some components fail.
return server.GenericAPIServer.PrepareRun().Run(ctx.Done())
return server.GenericAPIServer.PrepareRun().RunWithContext(ctx)
}

func (a *DatadogMetricsAdapter) makeProviderOrDie(ctx context.Context, apiCl *as.APIClient, datadogCl optional.Option[datadogclient.Component]) (provider.ExternalMetricsProvider, error) {
Expand Down
2 changes: 0 additions & 2 deletions cmd/otel-agent/config/agent_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
pkgconfigmodel "github.com/DataDog/datadog-agent/pkg/config/model"
pkgconfigsetup "github.com/DataDog/datadog-agent/pkg/config/setup"
"go.opentelemetry.io/collector/confmap"
"go.opentelemetry.io/collector/confmap/converter/expandconverter"
"go.opentelemetry.io/collector/confmap/provider/envprovider"
"go.opentelemetry.io/collector/confmap/provider/fileprovider"
"go.opentelemetry.io/collector/confmap/provider/httpprovider"
Expand Down Expand Up @@ -78,7 +77,6 @@ func NewConfigComponent(ctx context.Context, ddCfg string, uris []string) (confi
httpprovider.NewFactory(),
httpsprovider.NewFactory(),
},
ConverterFactories: []confmap.ConverterFactory{expandconverter.NewFactory()},
}

resolver, err := confmap.NewResolver(rs)
Expand Down
75 changes: 50 additions & 25 deletions cmd/serverless/dependencies_linux_amd64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@ github.com/gogo/protobuf/proto
github.com/gogo/protobuf/protoc-gen-gogo/descriptor
github.com/gogo/protobuf/sortkeys
github.com/gogo/protobuf/types
github.com/golang/groupcache/lru
github.com/golang/mock/gomock
github.com/golang/protobuf/proto
github.com/golang/snappy
Expand Down Expand Up @@ -506,6 +505,7 @@ github.com/mostynb/go-grpc-compression/internal/snappy
github.com/mostynb/go-grpc-compression/internal/zstd
github.com/mostynb/go-grpc-compression/nonclobbering/snappy
github.com/mostynb/go-grpc-compression/nonclobbering/zstd
github.com/munnerz/goautoneg
github.com/olekukonko/tablewriter
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry
github.com/opencontainers/go-digest
Expand All @@ -519,12 +519,14 @@ github.com/patrickmn/go-cache
github.com/pelletier/go-toml
github.com/philhofer/fwd
github.com/pkg/errors
github.com/pmezard/go-difflib/difflib
github.com/prometheus/client_golang/internal/github.com/golang/gddo/httputil
github.com/prometheus/client_golang/internal/github.com/golang/gddo/httputil/header
github.com/prometheus/client_golang/prometheus
github.com/prometheus/client_golang/prometheus/internal
github.com/prometheus/client_golang/prometheus/promhttp
github.com/prometheus/client_model/go
github.com/prometheus/common/expfmt
github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
github.com/prometheus/common/model
github.com/prometheus/procfs
github.com/prometheus/procfs/internal/fs
Expand Down Expand Up @@ -558,20 +560,16 @@ github.com/spf13/cobra
github.com/spf13/jwalterweatherman
github.com/spf13/pflag
github.com/stormcat24/protodep/pkg/logger
github.com/stretchr/testify/assert
github.com/stretchr/testify/require
github.com/tinylib/msgp/msgp
github.com/tklauser/go-sysconf
github.com/tklauser/numcpus
github.com/twmb/murmur3
go.opencensus.io
go.opencensus.io/internal
go.opencensus.io/metric/metricdata
go.opencensus.io/metric/metricproducer
go.opencensus.io/resource
go.opencensus.io/trace
go.opencensus.io/trace/internal
go.opencensus.io/trace/tracestate
go.opentelemetry.io/collector/client
go.opentelemetry.io/collector/component
go.opentelemetry.io/collector/component/componentprofiles
go.opentelemetry.io/collector/component/componentstatus
go.opentelemetry.io/collector/component/componenttest
go.opentelemetry.io/collector/config/configauth
go.opentelemetry.io/collector/config/configcompression
Expand All @@ -584,19 +582,28 @@ go.opentelemetry.io/collector/config/configtelemetry
go.opentelemetry.io/collector/config/configtls
go.opentelemetry.io/collector/config/internal
go.opentelemetry.io/collector/confmap
go.opentelemetry.io/collector/confmap/internal
go.opentelemetry.io/collector/confmap/internal/mapstructure
go.opentelemetry.io/collector/connector
go.opentelemetry.io/collector/connector/connectorprofiles
go.opentelemetry.io/collector/connector/connectortest
go.opentelemetry.io/collector/connector/internal
go.opentelemetry.io/collector/consumer
go.opentelemetry.io/collector/consumer/consumererror
go.opentelemetry.io/collector/consumer/consumerprofiles
go.opentelemetry.io/collector/consumer/consumertest
go.opentelemetry.io/collector/consumer/internal
go.opentelemetry.io/collector/exporter
go.opentelemetry.io/collector/exporter/debugexporter
go.opentelemetry.io/collector/exporter/debugexporter/internal/metadata
go.opentelemetry.io/collector/exporter/debugexporter/internal/normal
go.opentelemetry.io/collector/exporter/exporterbatcher
go.opentelemetry.io/collector/exporter/exporterhelper
go.opentelemetry.io/collector/exporter/exporterhelper/internal
go.opentelemetry.io/collector/exporter/exporterhelper/internal/metadata
go.opentelemetry.io/collector/exporter/exporterprofiles
go.opentelemetry.io/collector/exporter/exporterqueue
go.opentelemetry.io/collector/exporter/exportertest
go.opentelemetry.io/collector/exporter/internal
go.opentelemetry.io/collector/exporter/internal/experr
go.opentelemetry.io/collector/exporter/internal/otlptext
go.opentelemetry.io/collector/exporter/internal/queue
Expand All @@ -605,13 +612,13 @@ go.opentelemetry.io/collector/exporter/otlpexporter/internal/metadata
go.opentelemetry.io/collector/extension
go.opentelemetry.io/collector/extension/auth
go.opentelemetry.io/collector/extension/experimental/storage
go.opentelemetry.io/collector/extension/extensioncapabilities
go.opentelemetry.io/collector/extension/extensiontest
go.opentelemetry.io/collector/featuregate
go.opentelemetry.io/collector/internal/fanoutconsumer
go.opentelemetry.io/collector/internal/featuregates
go.opentelemetry.io/collector/internal/globalgates
go.opentelemetry.io/collector/internal/globalsignal
go.opentelemetry.io/collector/internal/httphelper
go.opentelemetry.io/collector/internal/localhostgate
go.opentelemetry.io/collector/internal/obsreportconfig
go.opentelemetry.io/collector/internal/obsreportconfig/obsmetrics
go.opentelemetry.io/collector/internal/sharedcomponent
go.opentelemetry.io/collector/otelcol
go.opentelemetry.io/collector/otelcol/internal/configunmarshaler
Expand All @@ -635,40 +642,51 @@ go.opentelemetry.io/collector/pdata/plog
go.opentelemetry.io/collector/pdata/plog/plogotlp
go.opentelemetry.io/collector/pdata/pmetric
go.opentelemetry.io/collector/pdata/pmetric/pmetricotlp
go.opentelemetry.io/collector/pdata/pprofile
go.opentelemetry.io/collector/pdata/pprofile/pprofileotlp
go.opentelemetry.io/collector/pdata/ptrace
go.opentelemetry.io/collector/pdata/ptrace/ptraceotlp
go.opentelemetry.io/collector/pdata/testdata
go.opentelemetry.io/collector/pipeline
go.opentelemetry.io/collector/processor
go.opentelemetry.io/collector/processor/batchprocessor
go.opentelemetry.io/collector/processor/batchprocessor/internal/metadata
go.opentelemetry.io/collector/processor/internal
go.opentelemetry.io/collector/processor/processorhelper
go.opentelemetry.io/collector/processor/processorhelper/internal/metadata
go.opentelemetry.io/collector/processor/processorprofiles
go.opentelemetry.io/collector/processor/processortest
go.opentelemetry.io/collector/receiver
go.opentelemetry.io/collector/receiver/internal
go.opentelemetry.io/collector/receiver/otlpreceiver
go.opentelemetry.io/collector/receiver/otlpreceiver/internal/errors
go.opentelemetry.io/collector/receiver/otlpreceiver/internal/logs
go.opentelemetry.io/collector/receiver/otlpreceiver/internal/metadata
go.opentelemetry.io/collector/receiver/otlpreceiver/internal/metrics
go.opentelemetry.io/collector/receiver/otlpreceiver/internal/profiles
go.opentelemetry.io/collector/receiver/otlpreceiver/internal/trace
go.opentelemetry.io/collector/receiver/receiverhelper
go.opentelemetry.io/collector/receiver/receiverhelper/internal/metadata
go.opentelemetry.io/collector/receiver/receiverprofiles
go.opentelemetry.io/collector/receiver/receivertest
go.opentelemetry.io/collector/semconv/v1.17.0
go.opentelemetry.io/collector/semconv/v1.18.0
go.opentelemetry.io/collector/semconv/v1.21.0
go.opentelemetry.io/collector/semconv/v1.6.1
go.opentelemetry.io/collector/service
go.opentelemetry.io/collector/service/extensions
go.opentelemetry.io/collector/service/internal/builders
go.opentelemetry.io/collector/service/internal/capabilityconsumer
go.opentelemetry.io/collector/service/internal/components
go.opentelemetry.io/collector/service/internal/graph
go.opentelemetry.io/collector/service/internal/metadata
go.opentelemetry.io/collector/service/internal/proctelemetry
go.opentelemetry.io/collector/service/internal/resource
go.opentelemetry.io/collector/service/internal/servicetelemetry
go.opentelemetry.io/collector/service/internal/status
go.opentelemetry.io/collector/service/internal/zpages
go.opentelemetry.io/collector/service/pipelines
go.opentelemetry.io/collector/service/telemetry
go.opentelemetry.io/collector/service/telemetry/internal
go.opentelemetry.io/collector/service/telemetry/internal/otelinit
go.opentelemetry.io/contrib/config
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/internal
Expand All @@ -680,12 +698,10 @@ go.opentelemetry.io/contrib/propagators/b3
go.opentelemetry.io/otel
go.opentelemetry.io/otel/attribute
go.opentelemetry.io/otel/baggage
go.opentelemetry.io/otel/bridge/opencensus
go.opentelemetry.io/otel/bridge/opencensus/internal
go.opentelemetry.io/otel/bridge/opencensus/internal/oc2otel
go.opentelemetry.io/otel/bridge/opencensus/internal/ocmetric
go.opentelemetry.io/otel/bridge/opencensus/internal/otel2oc
go.opentelemetry.io/otel/codes
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp/internal/retry
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp/internal/transform
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal/envconfig
Expand All @@ -711,12 +727,16 @@ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/envconf
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/otlpconfig
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp/internal/retry
go.opentelemetry.io/otel/exporters/prometheus
go.opentelemetry.io/otel/exporters/stdout/stdoutlog
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric
go.opentelemetry.io/otel/exporters/stdout/stdouttrace
go.opentelemetry.io/otel/internal
go.opentelemetry.io/otel/internal/attribute
go.opentelemetry.io/otel/internal/baggage
go.opentelemetry.io/otel/internal/global
go.opentelemetry.io/otel/log
go.opentelemetry.io/otel/log/embedded
go.opentelemetry.io/otel/log/noop
go.opentelemetry.io/otel/metric
go.opentelemetry.io/otel/metric/embedded
go.opentelemetry.io/otel/metric/noop
Expand All @@ -725,25 +745,30 @@ go.opentelemetry.io/otel/sdk
go.opentelemetry.io/otel/sdk/instrumentation
go.opentelemetry.io/otel/sdk/internal/env
go.opentelemetry.io/otel/sdk/internal/x
go.opentelemetry.io/otel/sdk/log
go.opentelemetry.io/otel/sdk/log/internal/x
go.opentelemetry.io/otel/sdk/metric
go.opentelemetry.io/otel/sdk/metric/exemplar
go.opentelemetry.io/otel/sdk/metric/internal
go.opentelemetry.io/otel/sdk/metric/internal/aggregate
go.opentelemetry.io/otel/sdk/metric/internal/exemplar
go.opentelemetry.io/otel/sdk/metric/internal/x
go.opentelemetry.io/otel/sdk/metric/metricdata
go.opentelemetry.io/otel/sdk/resource
go.opentelemetry.io/otel/sdk/trace
go.opentelemetry.io/otel/sdk/trace/tracetest
go.opentelemetry.io/otel/semconv/internal
go.opentelemetry.io/otel/semconv/v1.17.0
go.opentelemetry.io/otel/semconv/v1.20.0
go.opentelemetry.io/otel/semconv/v1.25.0
go.opentelemetry.io/otel/semconv/v1.26.0
go.opentelemetry.io/otel/semconv/v1.4.0
go.opentelemetry.io/otel/trace
go.opentelemetry.io/otel/trace/embedded
go.opentelemetry.io/otel/trace/noop
go.opentelemetry.io/proto/otlp/collector/logs/v1
go.opentelemetry.io/proto/otlp/collector/metrics/v1
go.opentelemetry.io/proto/otlp/collector/trace/v1
go.opentelemetry.io/proto/otlp/common/v1
go.opentelemetry.io/proto/otlp/logs/v1
go.opentelemetry.io/proto/otlp/metrics/v1
go.opentelemetry.io/proto/otlp/resource/v1
go.opentelemetry.io/proto/otlp/trace/v1
Expand Down Expand Up @@ -821,7 +846,6 @@ gonum.org/v1/gonum/floats
gonum.org/v1/gonum/floats/scalar
gonum.org/v1/gonum/graph
gonum.org/v1/gonum/graph/internal/linear
gonum.org/v1/gonum/graph/internal/ordered
gonum.org/v1/gonum/graph/internal/set
gonum.org/v1/gonum/graph/iterator
gonum.org/v1/gonum/graph/set/uid
Expand All @@ -834,6 +858,7 @@ gonum.org/v1/gonum/internal/asm/f32
gonum.org/v1/gonum/internal/asm/f64
gonum.org/v1/gonum/internal/cmplx64
gonum.org/v1/gonum/internal/math32
gonum.org/v1/gonum/internal/order
gonum.org/v1/gonum/lapack
gonum.org/v1/gonum/lapack/gonum
gonum.org/v1/gonum/lapack/lapack64
Expand Down
Loading
Loading