drop the applied repo: the hive keeps no copy of an agent's config, only the deploy markers. Refs #5913
This commit is contained in:
parent
deeb5ecd86
commit
862495530c
1 changed files with 190 additions and 1634 deletions
|
|
@ -76,17 +76,6 @@ pub fn container_name(name: &str) -> String {
|
|||
format!("{AGENT_PREFIX}{name}")
|
||||
}
|
||||
|
||||
/// Which way to reconcile an agent's config branches
|
||||
/// ([`HostRequest::ReconcileConfigApply`]).
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum ReconcileDirection {
|
||||
/// Reset the local applied checkout to forge `main`.
|
||||
Forge,
|
||||
/// Advance forge `main` from local — not supported yet.
|
||||
Local,
|
||||
}
|
||||
|
||||
/// Requests on the host admin socket.
|
||||
///
|
||||
/// Wire format: one JSON object per line.
|
||||
|
|
@ -223,28 +212,6 @@ pub enum HostRequest {
|
|||
#[serde(default)]
|
||||
scope: LifecycleScope,
|
||||
},
|
||||
/// Report the divergence between agent `agent`'s local applied config
|
||||
/// checkout and its forge `agent-configs/<agent>` `main`. The daemon
|
||||
/// fetches forge `main` read-only and returns a human-readable report
|
||||
/// (ahead/behind counts, commit-range summary, `git diff --stat`, and
|
||||
/// the full diff when `verbose`) in [`HostResponse::messages`]. Read-only
|
||||
/// — never mutates either side. Backs `hivectl forge reconcile-config`
|
||||
/// (the diff it always shows first).
|
||||
ReconcileConfigStatus {
|
||||
agent: Ident,
|
||||
#[serde(default)]
|
||||
verbose: bool,
|
||||
},
|
||||
/// Reconcile agent `agent`'s config branches in `direction`.
|
||||
/// `Forge` resets the local applied checkout to forge `main` (takes
|
||||
/// effect on the next deploy); `Local` is not supported yet and returns
|
||||
/// an [`HostResponse::error`] (advancing the protected forge `main` from
|
||||
/// local needs lifting branch protection — resolve via a config PR).
|
||||
/// Backs `hivectl forge reconcile-config --from <forge|local>`.
|
||||
ReconcileConfigApply {
|
||||
agent: Ident,
|
||||
direction: ReconcileDirection,
|
||||
},
|
||||
/// Turn on btrfs qgroup accounting on the agent-state filesystem, via
|
||||
/// the privileged helper. Daemon-side equivalent of `hivectl
|
||||
/// quota-enable`. Returns advisory lines in [`HostResponse::messages`].
|
||||
|
|
|
|||
Loading…
Reference in a new issue