Skip to content

Commit

Permalink
Merge branch 'main' of github.com:DataDog/datadog-agent into misteria…
Browse files Browse the repository at this point in the history
…ud/ASCII-2591-migrate-agent-ipc-clients-to-use-certificate
  • Loading branch information
misteriaud committed Jan 3, 2025
2 parents e5b8998 + 274cdd8 commit 5d31fc3
Show file tree
Hide file tree
Showing 574 changed files with 9,452 additions and 10,348 deletions.
1 change: 0 additions & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ updates:
- dependency-name: github.com/mholt/archiver
- dependency-name: github.com/prometheus/client_golang
- dependency-name: github.com/spf13/cast
- dependency-name: github.com/ugorji/go
# Ignore internal modules
- dependency-name: github.com/DataDog/datadog-agent/*
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backport-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
contents: write
pull-requests: write
steps:
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
- uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1
id: app-token
with:
app-id: ${{ vars.DD_GITHUB_TOKEN_GENERATOR_APP_ID }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/create_release_schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
description: 'Full version of the release to schedule (e.g. 7.31.0)'
required: true
type: string
freeze_date:
description: 'Isoformat date when we freeze CI (e.g. 2023-12-31)'
cutoff_date:
description: 'Isoformat date when we the cut-off happens (e.g. 2023-12-31)'
required: true
type: string

Expand Down Expand Up @@ -38,6 +38,6 @@ jobs:
ATLASSIAN_USERNAME : ${{ secrets.ATLASSIAN_USERNAME }}
ATLASSIAN_PASSWORD : ${{ secrets.ATLASSIAN_PASSWORD }}
INPUT_VERSION: ${{ github.event.inputs.version }}
FREEZE_DATE: ${{ github.event.inputs.freeze_date }}
CUTOFF_DATE: ${{ github.event.inputs.cutoff_date }}
run: |
inv -e release.create-schedule --version "$INPUT_VERSION" --freeze-date "$FREEZE_DATE"
inv -e release.create-schedule --version "$INPUT_VERSION" --cutoff-date "CUTOFF_DATE"
2 changes: 1 addition & 1 deletion .github/workflows/label-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
run: inv -e github.agenttelemetry-list-change-ack-check --pr-id=${{ github.event.pull_request.number }}

ask-reviews:
if: github.triggering_actor != 'dd-devflow[bot]' && github.event.action != 'synchronize'
if: github.triggering_actor != 'dd-devflow[bot]' && github.event.action == 'labeled' && github.event.label.name == 'ask-review'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
permissions: {} # the workflow uses the GitHub App token to create the PR so no specific permissions needed here
steps:
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
- uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1
id: app-token
with:
app-id: ${{ vars.DD_GITHUB_TOKEN_GENERATOR_APP_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/common/test_infra_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

---
variables:
TEST_INFRA_DEFINITIONS_BUILDIMAGES: 36860d3c29b4
TEST_INFRA_DEFINITIONS_BUILDIMAGES: f61405297d57
TEST_INFRA_DEFINITIONS_BUILDIMAGES_SUFFIX: ''
1 change: 1 addition & 0 deletions .gitlab/container_build/docker_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
variables:
AGENT_ZIP: "datadog-agent-7*-x86_64.zip"
BUILD_ARG: "--build-arg BASE_IMAGE=mcr.microsoft.com/powershell:lts-nanoserver-${VARIANT} --build-arg WITH_JMX=${WITH_JMX} --build-arg VARIANT=${VARIANT} --build-arg INSTALL_INFO=nano-${VARIANT}"
retry: 2

.docker_build_agent7_windows_servercore_common:
extends:
Expand Down
2 changes: 2 additions & 0 deletions .gitlab/dev_container_deploy/docker_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dev_branch_multiarch-a7:
IMG_DESTINATIONS: agent-dev:${CI_COMMIT_REF_SLUG}-py3
- IMG_SOURCES: ${SRC_AGENT}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-7-jmx-amd64,${SRC_AGENT}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-7-jmx-arm64
IMG_DESTINATIONS: agent-dev:${CI_COMMIT_REF_SLUG}-py3-jmx
- IMG_SOURCES: ${SRC_AGENT}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-7-jmx-amd64,${SRC_AGENT}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-7-jmx-arm64
IMG_DESTINATIONS: agent-dev:${CI_COMMIT_SHORT_SHA}-py3-jmx

dev_branch_multiarch-fips:
extends: .docker_publish_job_definition
Expand Down
1 change: 1 addition & 0 deletions .gitlab/e2e/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ new-e2e-gpu:
variables:
TARGETS: ./tests/gpu # the target path where tests are
TEAM: ebpf-platform
E2E_PULUMI_LOG_LEVEL: 8 # incident-33572
needs: # list of required jobs. By default gitlab waits for any previous jobs.
- !reference [.needs_new_e2e_template]
- deploy_deb_testing-a7_x64 # agent 7 debian package
Expand Down
20 changes: 20 additions & 0 deletions .gitlab/e2e_install_packages/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ new-e2e-agent-platform-install-script-centos-dogstatsd-a7-x86_64:
variables:
FLAVOR: datadog-dogstatsd

new-e2e-agent-platform-install-script-centos-datadog-fips-agent-a7-x86_64:
extends:
- .new_e2e_template
- .new-e2e_install_script
- .new-e2e_os_centos
- .new-e2e_centos_a7_x86_64
- .new-e2e_agent_a7
variables:
FLAVOR: datadog-fips-agent

new-e2e-agent-platform-install-script-centos-fips-a7-x86_64:
extends:
- .new_e2e_template
Expand Down Expand Up @@ -96,6 +106,16 @@ new-e2e-agent-platform-install-script-centos-fips-dogstatsd-a7-x86_64:
variables:
FLAVOR: datadog-dogstatsd

new-e2e-agent-platform-install-script-centos-fips-datadog-fips-agent-a7-x86_64:
extends:
- .new_e2e_template
- .new-e2e_install_script
- .new-e2e_os_centos
- .new-e2e_centos-fips_a7_x86_64
- .new-e2e_agent_a7
variables:
FLAVOR: datadog-fips-agent

new-e2e-agent-platform-step-by-step-centos-a7-x86_64:
extends:
- .new_e2e_template
Expand Down
10 changes: 10 additions & 0 deletions .gitlab/e2e_install_packages/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ new-e2e-agent-platform-install-script-debian-dogstatsd-a7-x86_64:
variables:
FLAVOR: datadog-dogstatsd

new-e2e-agent-platform-install-script-debian-fips-agent-a7-x86_64:
extends:
- .new_e2e_template
- .new-e2e_install_script
- .new-e2e_os_debian
- .new-e2e_debian_a7_x86_64
- .new-e2e_agent_a7
variables:
FLAVOR: datadog-fips-agent

new-e2e-agent-platform-install-script-debian-heroku-agent-a7-x86_64:
extends:
- .new_e2e_template
Expand Down
10 changes: 10 additions & 0 deletions .gitlab/e2e_install_packages/suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ new-e2e-agent-platform-install-script-suse-dogstatsd-a7-x86_64:
variables:
FLAVOR: datadog-dogstatsd

new-e2e-agent-platform-install-script-suse-fips-agent-a7-x86_64:
extends:
- .new_e2e_template
- .new-e2e_install_script
- .new-e2e_os_suse
- .new-e2e_suse_a7_x86_64
- .new-e2e_agent_a7
variables:
FLAVOR: datadog-fips-agent

new-e2e-agent-platform-step-by-step-suse-a7-x86_64:
extends:
- .new_e2e_template
Expand Down
10 changes: 10 additions & 0 deletions .gitlab/e2e_install_packages/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ new-e2e-agent-platform-install-script-ubuntu-heroku-agent-a7-x86_64:
variables:
FLAVOR: datadog-heroku-agent

new-e2e-agent-platform-install-script-ubuntu-fips-agent-a7-x86_64:
extends:
- .new_e2e_template
- .new-e2e_install_script
- .new-e2e_os_ubuntu
- .new-e2e_ubuntu_a7_x86_64
- .new-e2e_agent_a7
variables:
FLAVOR: datadog-fips-agent

new-e2e-agent-platform-step-by-step-ubuntu-a7-x86_64:
extends:
- .new_e2e_template
Expand Down
9 changes: 6 additions & 3 deletions .gitlab/e2e_testing_deploy/e2e_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ deploy_deb_testing-a7_x64:
[
"installer_deb-amd64",
"agent_deb-x64-a7",
"agent_deb-x64-a7-fips",
"agent_heroku_deb-x64-a7",
"iot_agent_deb-x64",
"dogstatsd_deb-x64",
Expand All @@ -75,7 +76,7 @@ deploy_deb_testing-a7_arm64:
- !reference [.manual]
extends:
- .deploy_deb_testing-a7
needs: ["installer_deb-arm64", "agent_deb-arm64-a7", "lint_linux-arm64"]
needs: ["installer_deb-arm64", "agent_deb-arm64-a7", "agent_deb-arm64-a7-fips", "lint_linux-arm64"]
script:
- *setup_apt_signing_key
- set +x # make sure we don't output the creds to the build log
Expand Down Expand Up @@ -105,6 +106,7 @@ deploy_rpm_testing-a7_x64:
[
"installer_rpm-amd64",
"agent_rpm-x64-a7",
"agent_rpm-x64-a7-fips",
"iot_agent_rpm-x64",
"dogstatsd_rpm-x64",
"lint_linux-x64",
Expand All @@ -121,7 +123,7 @@ deploy_rpm_testing-a7_arm64:
- !reference [.manual]
extends:
- .deploy_rpm_testing-a7
needs: ["installer_rpm-arm64", "agent_rpm-arm64-a7", "lint_linux-arm64"]
needs: ["installer_rpm-arm64", "agent_rpm-arm64-a7", "agent_rpm-arm64-a7-fips", "lint_linux-arm64"]
script:
- *setup_rpm_signing_key
- set +x
Expand All @@ -141,6 +143,7 @@ deploy_suse_rpm_testing_x64-a7:
"agent_suse-x64-a7",
"iot_agent_suse-x64",
"dogstatsd_suse-x64",
"agent_suse-x64-a7-fips",
"lint_linux-x64",
]
variables:
Expand All @@ -160,7 +163,7 @@ deploy_suse_rpm_testing_arm64-a7:
stage: e2e_deploy
image: registry.ddbuild.io/ci/datadog-agent-buildimages/gitlab_agent_deploy$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
tags: ["arch:amd64"]
needs: ["installer_suse_rpm-arm64", "agent_suse-arm64-a7", "lint_linux-arm64"]
needs: ["installer_suse_rpm-arm64", "agent_suse-arm64-a7", "agent_suse-arm64-a7-fips", "lint_linux-arm64"]
variables:
DD_PIPELINE_ID: $CI_PIPELINE_ID-a7
before_script:
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/integration_test/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
-e VCPKG_BINARY_SOURCES="clear;x-azblob,${vcpkgBlobSaSUrl}"
-e PIP_INDEX_URL=${PIP_INDEX_URL}
registry.ddbuild.io/ci/datadog-agent-buildimages/windows_1809_${ARCH}${Env:DATADOG_AGENT_WINBUILDIMAGES_SUFFIX}:${Env:DATADOG_AGENT_WINBUILDIMAGES}
c:\mnt\tasks\winbuildscripts\integrationtests.bat
powershell.exe -c "c:\mnt\tasks\winbuildscripts\Invoke-IntegrationTests.ps1 -BuildOutOfSource 1 -CheckGoVersion 1 -InstallDeps 1"
- If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }

integration_tests_windows-x64:
Expand Down
3 changes: 2 additions & 1 deletion .gitlab/lint/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
-e CI_PIPELINE_ID=${CI_PIPELINE_ID}
-e CI_PROJECT_NAME=${CI_PROJECT_NAME}
-e GOMODCACHE="c:\modcache"
registry.ddbuild.io/ci/datadog-agent-buildimages/windows_1809_${ARCH}${Env:DATADOG_AGENT_WINBUILDIMAGES_SUFFIX}:$Env:DATADOG_AGENT_WINBUILDIMAGES c:\mnt\tasks\winbuildscripts\lint.bat
registry.ddbuild.io/ci/datadog-agent-buildimages/windows_1809_${ARCH}${Env:DATADOG_AGENT_WINBUILDIMAGES_SUFFIX}:$Env:DATADOG_AGENT_WINBUILDIMAGES
powershell.exe -c "c:\mnt\tasks\winbuildscripts\Invoke-Linters.ps1 -BuildOutOfSource 1 -CheckGoVersion 1 -InstallDeps 1"
- If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }

lint_windows-x64:
Expand Down
19 changes: 2 additions & 17 deletions .gitlab/notify/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,8 @@ notify:
- GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_TOKEN read_api) || exit $?; export GITLAB_TOKEN
- DD_API_KEY=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_API_KEY_ORG2 token) || exit $?; export DD_API_KEY
- python3 -m pip install -r requirements.txt -r tasks/libs/requirements-notifications.txt
- |
# Do not send notifications if this is a child pipeline of another repo
# The triggering repo should already have its own notification system
if [ "$CI_PIPELINE_SOURCE" != "pipeline" ]; then
if [ "$DEPLOY_AGENT" = "true" ]; then
invoke -e notify.send-message --notification-type "deploy"
elif [ "$CI_PIPELINE_SOURCE" != "push" ]; then
invoke -e notify.send-message --notification-type "trigger"
else
invoke -e notify.send-message --notification-type "merge"
fi
if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ]; then
invoke notify.check-consistent-failures
fi
else
echo "This pipeline was triggered by another repository, skipping notification."
fi
- invoke -e notify.send-message -p $CI_PIPELINE_ID
- invoke -e notify.check-consistent-failures -p $CI_PIPELINE_ID

send_pipeline_stats:
stage: notify
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/packaging/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ agent_suse-x64-a7-fips:
extends: [.package_suse_rpm_common, .package_rpm_agent_7, .package_rpm_x86]
needs: ["datadog-agent-7-x64-fips"]
variables:
OMNIBUS_EXTRA_ARGS: "--flavor fips"
OMNIBUS_EXTRA_ARGS: "--host-distribution=suse --flavor fips"
DD_PROJECT: agent

agent_suse-arm64-a7-fips:
extends: [.package_suse_rpm_common, .package_rpm_agent_7, .package_rpm_arm64]
needs: ["datadog-agent-7-arm64-fips"]
variables:
OMNIBUS_EXTRA_ARGS: "--flavor fips"
OMNIBUS_EXTRA_ARGS: "--host-distribution=suse --flavor fips"
DD_PROJECT: agent

installer_rpm-arm64:
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/source_test/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ new-e2e-unit-tests:
KUBERNETES_CPU_REQUEST: 6
# Not using the entrypoint script for the e2e runner image
FF_KUBERNETES_HONOR_ENTRYPOINT: false
timeout: 10m
timeout: 20m # Not less than 20m because job startup can take time.
2 changes: 1 addition & 1 deletion .gitlab/source_test/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
-e S3_PERMANENT_ARTIFACTS_URI="${S3_PERMANENT_ARTIFACTS_URI}"
-e COVERAGE_CACHE_FLAG="${COVERAGE_CACHE_FLAG}"
registry.ddbuild.io/ci/datadog-agent-buildimages/windows_1809_${ARCH}${Env:DATADOG_AGENT_WINBUILDIMAGES_SUFFIX}:${Env:DATADOG_AGENT_WINBUILDIMAGES}
c:\mnt\tasks\winbuildscripts\unittests.bat
powershell.exe -c "c:\mnt\tasks\winbuildscripts\Invoke-UnitTests.ps1 -BuildOutOfSource 1 -CheckGoVersion 1 -InstallDeps 1 -UploadCoverage 1 -UploadTestResults 1"
- If ($lastExitCode -ne "0") { exit "$lastExitCode" }
variables:
TEST_OUTPUT_FILE: test_output.json
Expand Down
3 changes: 3 additions & 0 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2922,6 +2922,8 @@ core,google.golang.org/grpc/balancer,Apache-2.0,Copyright 2014 gRPC authors.
core,google.golang.org/grpc/balancer/base,Apache-2.0,Copyright 2014 gRPC authors.
core,google.golang.org/grpc/balancer/grpclb/state,Apache-2.0,Copyright 2014 gRPC authors.
core,google.golang.org/grpc/balancer/pickfirst,Apache-2.0,Copyright 2014 gRPC authors.
core,google.golang.org/grpc/balancer/pickfirst/internal,Apache-2.0,Copyright 2014 gRPC authors.
core,google.golang.org/grpc/balancer/pickfirst/pickfirstleaf,Apache-2.0,Copyright 2014 gRPC authors.
core,google.golang.org/grpc/balancer/roundrobin,Apache-2.0,Copyright 2014 gRPC authors.
core,google.golang.org/grpc/binarylog/grpc_binarylog_v1,Apache-2.0,Copyright 2014 gRPC authors.
core,google.golang.org/grpc/channelz,Apache-2.0,Copyright 2014 gRPC authors.
Expand Down Expand Up @@ -3000,6 +3002,7 @@ core,google.golang.org/protobuf/internal/impl,BSD-3-Clause,Copyright (c) 2018 Th
core,google.golang.org/protobuf/internal/msgfmt,BSD-3-Clause,Copyright (c) 2018 The Go Authors. All rights reserved
core,google.golang.org/protobuf/internal/order,BSD-3-Clause,Copyright (c) 2018 The Go Authors. All rights reserved
core,google.golang.org/protobuf/internal/pragma,BSD-3-Clause,Copyright (c) 2018 The Go Authors. All rights reserved
core,google.golang.org/protobuf/internal/protolazy,BSD-3-Clause,Copyright (c) 2018 The Go Authors. All rights reserved
core,google.golang.org/protobuf/internal/set,BSD-3-Clause,Copyright (c) 2018 The Go Authors. All rights reserved
core,google.golang.org/protobuf/internal/strs,BSD-3-Clause,Copyright (c) 2018 The Go Authors. All rights reserved
core,google.golang.org/protobuf/internal/version,BSD-3-Clause,Copyright (c) 2018 The Go Authors. All rights reserved
Expand Down
4 changes: 2 additions & 2 deletions cmd/agent/common/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
workloadmeta "github.com/DataDog/datadog-agent/comp/core/workloadmeta/def"
"github.com/DataDog/datadog-agent/pkg/sbom/scanner"
"github.com/DataDog/datadog-agent/pkg/util/defaultpaths"
"github.com/DataDog/datadog-agent/pkg/util/optional"
"github.com/DataDog/datadog-agent/pkg/util/option"
)

// GetWorkloadmetaInit provides the InitHelper for workloadmeta so it can be injected as a Param
Expand All @@ -25,7 +25,7 @@ func GetWorkloadmetaInit() workloadmeta.InitHelper {
return func(ctx context.Context, wm workloadmeta.Component, cfg config.Component) error {
// SBOM scanner needs to be called here as initialization is required prior to the
// catalog getting instantiated and initialized.
sbomScanner, err := scanner.CreateGlobalScanner(cfg, optional.NewOption(wm))
sbomScanner, err := scanner.CreateGlobalScanner(cfg, option.New(wm))
if err != nil {
return fmt.Errorf("failed to create SBOM scanner: %s", err)
} else if sbomScanner != nil {
Expand Down
7 changes: 3 additions & 4 deletions cmd/agent/subcommands/diagnose/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ import (
"github.com/DataDog/datadog-agent/pkg/diagnose"
"github.com/DataDog/datadog-agent/pkg/diagnose/diagnosis"
"github.com/DataDog/datadog-agent/pkg/util/fxutil"
"github.com/DataDog/datadog-agent/pkg/util/optional"

"github.com/DataDog/datadog-agent/pkg/util/option"
"github.com/fatih/color"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -102,7 +101,7 @@ func Commands(globalParams *command.GlobalParams) []*cobra.Command {
AgentType: workloadmeta.NodeAgent,
InitHelper: common.GetWorkloadmetaInit(),
}),
fx.Supply(optional.NewNoneOption[collector.Component]()),
fx.Supply(option.None[collector.Component]()),
dualTaggerfx.Module(common.DualTaggerParams()),
autodiscoveryimpl.Module(),
compressionfx.Module(),
Expand Down Expand Up @@ -301,7 +300,7 @@ This command print the security-agent metadata payload. This payload is used by

func cmdDiagnose(cliParams *cliParams,
senderManager diagnosesendermanager.Component,
wmeta optional.Option[workloadmeta.Component],
wmeta option.Option[workloadmeta.Component],
ac autodiscovery.Component,
secretResolver secrets.Component,
_ log.Component,
Expand Down
6 changes: 3 additions & 3 deletions cmd/agent/subcommands/flare/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import (
"github.com/DataDog/datadog-agent/pkg/util/defaultpaths"
"github.com/DataDog/datadog-agent/pkg/util/fxutil"
"github.com/DataDog/datadog-agent/pkg/util/input"
"github.com/DataDog/datadog-agent/pkg/util/optional"
"github.com/DataDog/datadog-agent/pkg/util/option"
)

// cliParams are the command-line arguments for this subcommand
Expand Down Expand Up @@ -130,7 +130,7 @@ func Commands(globalParams *command.GlobalParams) []*cobra.Command {
}),
localTaggerfx.Module(tagger.Params{}),
autodiscoveryimpl.Module(),
fx.Supply(optional.NewNoneOption[collector.Component]()),
fx.Supply(option.None[collector.Component]()),
compressionfx.Module(),
diagnosesendermanagerimpl.Module(),
// We need inventoryagent to fill the status page generated by the flare.
Expand Down Expand Up @@ -304,7 +304,7 @@ func makeFlare(flareComp flare.Component,
config config.Component,
_ sysprobeconfig.Component,
cliParams *cliParams,
_ optional.Option[workloadmeta.Component],
_ option.Option[workloadmeta.Component],
_ tagger.Component) error {
var (
profile flare.ProfileData
Expand Down
Loading

0 comments on commit 5d31fc3

Please sign in to comment.