File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
pkg/cli/subcommands/check Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ import (
3434 localTaggerFx "github.com/DataDog/datadog-agent/comp/core/tagger/fx"
3535 nooptelemetry "github.com/DataDog/datadog-agent/comp/core/telemetry/noopsimpl"
3636 workloadfilterfx "github.com/DataDog/datadog-agent/comp/core/workloadfilter/fx"
37+ healthplatform "github.com/DataDog/datadog-agent/comp/healthplatform/def"
3738 logscompression "github.com/DataDog/datadog-agent/comp/serializer/logscompression/def"
3839 logscompressionfx "github.com/DataDog/datadog-agent/comp/serializer/logscompression/fx"
40+ "github.com/DataDog/datadog-agent/pkg/util/option"
3941
4042 workloadmeta "github.com/DataDog/datadog-agent/comp/core/workloadmeta/def"
4143 workloadmetafx "github.com/DataDog/datadog-agent/comp/core/workloadmeta/fx"
@@ -74,6 +76,9 @@ func main() {
7476 delegatedauthfx .Module (),
7577 workloadfilterfx .Module (),
7678 autodiscoveryimpl .Module (),
79+ fx .Provide (func () option.Option [healthplatform.Component ] {
80+ return option .None [healthplatform.Component ]()
81+ }),
7782 fx .Provide (func (config coreconfig.Component ) healthprobeDef.Options {
7883 return healthprobeDef.Options {
7984 Port : config .GetInt ("health_port" ),
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ import (
6262 "github.com/DataDog/datadog-agent/comp/forwarder/eventplatformreceiver/eventplatformreceiverimpl"
6363 orchestratorForwarderImpl "github.com/DataDog/datadog-agent/comp/forwarder/orchestrator/orchestratorimpl"
6464 haagentfx "github.com/DataDog/datadog-agent/comp/haagent/fx"
65+ healthplatform "github.com/DataDog/datadog-agent/comp/healthplatform/def"
6566 healthplatformmock "github.com/DataDog/datadog-agent/comp/healthplatform/mock"
6667 logagent "github.com/DataDog/datadog-agent/comp/logs/agent"
6768 integrations "github.com/DataDog/datadog-agent/comp/logs/integrations/def"
@@ -183,6 +184,9 @@ func MakeCommand(globalParamsGetter func() GlobalParams) *cobra.Command {
183184 dualTaggerfx .Module (common .DualTaggerParams ()),
184185 workloadfilterfx .Module (),
185186 autodiscoveryimpl .Module (),
187+ fx .Provide (func () option.Option [healthplatform.Component ] {
188+ return option .None [healthplatform.Component ]()
189+ }),
186190 defaultforwarder .NoopModule (),
187191 inventorychecksimpl .Module (),
188192 logscompression .Module (),
You can’t perform that action at this time.
0 commit comments