Skip to content

Commit

Permalink
fix(trace-agent): Add fleetcfgpath flag (#28311)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteFoy authored Aug 8, 2024
1 parent 6108bcf commit 1a835ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/trace-agent/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ func MakeRootCommand() *cobra.Command {
func makeCommands(globalParams *subcommands.GlobalParams) *cobra.Command {
globalConfGetter := func() *subcommands.GlobalParams {
return &subcommands.GlobalParams{
ConfPath: globalParams.ConfPath,
ConfigName: globalParams.ConfigName,
LoggerName: LoggerName,
ConfPath: globalParams.ConfPath,
ConfigName: globalParams.ConfigName,
LoggerName: LoggerName,
FleetPoliciesDirPath: globalParams.FleetPoliciesDirPath,
}
}
commands := []*cobra.Command{
Expand All @@ -60,6 +61,7 @@ func makeCommands(globalParams *subcommands.GlobalParams) *cobra.Command {
}

traceAgentCmd.PersistentFlags().StringVarP(&globalParams.ConfPath, "config", "c", defaultConfigPath, "path to directory containing datadog.yaml")
traceAgentCmd.PersistentFlags().StringVarP(&globalParams.FleetPoliciesDirPath, "fleetcfgpath", "", "", "path to the directory containing fleet policies")

return &traceAgentCmd
}

0 comments on commit 1a835ad

Please sign in to comment.