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:
parent
b1b95b5407
commit
26ef09b0d7
1 changed files with 9 additions and 9 deletions
|
|
@ -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"
|
||||
),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue