Watch
0
0
Fork
You've already forked hyperhive
0

name the grafana pod's sidecar where the controller's token errors point

The controller's missing-token error and the two crates' docs named a host
unit that no longer runs.
This commit is contained in:
atlas 2026-11-27 22:51:00 +01:00
commit 26ef09b0d7

View file

@ -5,9 +5,9 @@
//! (`SWARM_CONTROLLER_GRAFANA_URL`). The token is a Viewer service account's,
//! read from the swarm's secret store at
//! `swarm_secret_client::grafana::controller_token_path` under this daemon's
//! own certificate. `swarm-bao-grafana-controller-token`, on Grafana's host,
//! mints it and replaces it whenever Grafana refuses the stored one, so a 401
//! here re-reads the store once before giving up.
//! own certificate. The `controller-token` container of Grafana's pod mints it
//! and replaces it whenever Grafana refuses the stored one, so a 401 here
//! re-reads the store once before giving up.
use std::collections::BTreeMap;
use std::future::Future;
@ -177,8 +177,8 @@ async fn token_from_store() -> Result<String> {
match stored {
Some(t) if !t.value.trim().is_empty() => Ok(t.value.trim().to_owned()),
_ => anyhow::bail!(
"nothing at {path}: swarm-bao-grafana-controller-token, on the host that runs \
Grafana, has not stored this daemon's Grafana token"
"nothing at {path}: the controller-token container of Grafana's pod \
has not stored this daemon's Grafana token"
),
}
}