Skip to content

Commit 314690c

Browse files
committed
remove unnecessary comments
1 parent 4be1713 commit 314690c

6 files changed

Lines changed: 27 additions & 157 deletions

File tree

pkg/privateactionrunner/par-control/src/bins/par-control.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// This product includes software developed at Datadog (https://www.datadoghq.com/).
44
// Copyright 2026-present Datadog, Inc.
55

6-
//! par-control installation, configuration, and executor-lifecycle scaffold.
7-
86
use anyhow::Result;
97
use clap::Parser;
108
use par_control::bootstrap;
@@ -19,8 +17,6 @@ struct Cli {
1917
#[arg(short = 'c', long, default_value_os_t = platform::default_config_path())]
2018
config: PathBuf,
2119

22-
/// Go one-shot command that validates or creates the runner identity. Must
23-
/// be the last option because it consumes all remaining arguments.
2420
#[arg(
2521
long = "ensure-enrollment-command",
2622
num_args = 1..,

pkg/privateactionrunner/par-control/src/bootstrap.rs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,18 @@
33
// This product includes software developed at Datadog (https://www.datadoghq.com/).
44
// Copyright 2026-present Datadog, Inc.
55

6-
//! Identity bootstrap. Before its first OPMS call, par-control runs the Go
7-
//! ensure-enrollment one-shot. Go owns hostname resolution, enrollment, and
8-
//! persistence; Rust then loads ordinary operational configuration and the
9-
//! persisted or configured identity directly.
6+
//! Identity bootstrap. Before its first OPMS call, par-control runs the
7+
//! Go PAR's ensure-enrollment command. Go owns hostname resolution, enrollment,
8+
//! and persistence. Rust then loads operational config and the identity.
109
1110
use crate::config::Config;
1211
use anyhow::{Context, Result, bail};
1312
use log::info;
1413
use std::path::Path;
1514
use std::process::Command;
1615

17-
/// Run the Go ensure-enrollment one-shot, then load the control-plane config
18-
/// directly from local YAML, environment, and Fleet policy.
19-
///
20-
/// `ensure_enrollment_command` is the complete argv configured by the installed
21-
/// process definition, normally `privateactionrunner ensure-enrollment --cfgpath
22-
/// <datadog.yaml>`. It runs on every split-mode startup so the hostname decision
23-
/// exactly matches the Go Agent. The command itself applies persisted identity,
24-
/// inline identity, and `self_enroll` precedence.
16+
/// Run ensure-enrollment, then load the control-plane config
17+
/// from local YAML, environment, and Fleet policy.
2518
pub fn load_config_with_bootstrap(
2619
config_path: &Path,
2720
ensure_enrollment_command: &[String],

0 commit comments

Comments
 (0)