File tree Expand file tree Collapse file tree
pkg/procmgr/rust/src/config_gate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66//! Config-key → environment-variable bindings for procmgr config gates.
77//!
8- //! Keys listed in [`ENV_BINDINGS`] use **only** the named env vars (mirrors Go
9- //! `BindEnvAndSetDefault` when explicit names are passed). All other keys use the
10- //! agent convention `DD_<KEY_WITH_UNDERSCORES>`.
8+ //! Source of truth: `env_vars` on each setting in `pkg/config/schema/yaml/`
9+ //! (merged via `dda inv schema.codegen` into generated Go init settings).
1110//!
12- //! Keep in sync with `pkg/config/setup/process.go` (`procBindEnvAndSetDefault`),
13- //! `pkg/config/setup/process_settings.go`, `pkg/config/setup/system_probe_settings.go`,
14- //! and `pkg/config/setup/common_settings.go`.
11+ //! Keys listed in [`ENV_BINDINGS`] use **only** the named env vars. All other
12+ //! keys use the agent convention `DD_<KEY_WITH_UNDERSCORES>`.
1513//!
16- //! On Windows, config gates resolve `DD_*` values from the core Agent service
17- //! (`datadogagent`) SCM `Environment` registry first, then dd-procmgr's process
18- //! environment, so service-local overrides match agent config resolution.
14+ //! This table covers only keys evaluated by config gates (`GATED_KEY_SPECS` in
15+ //! `config_gate.rs`). Keep it in sync with the schema `env_vars` for those keys.
16+ //!
17+ //! On Windows, config gates resolve `DD_*` from the core Agent SCM `Environment`
18+ //! registry first, then dd-procmgr's process environment, so service-local
19+ //! overrides match agent config resolution.
1920
2021struct EnvBinding {
2122 key : & ' static str ,
You can’t perform that action at this time.
0 commit comments