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
2 changed files with 9 additions and 9 deletions
|
|
@ -5,9 +5,9 @@
|
||||||
//! (`SWARM_CONTROLLER_GRAFANA_URL`). The token is a Viewer service account's,
|
//! (`SWARM_CONTROLLER_GRAFANA_URL`). The token is a Viewer service account's,
|
||||||
//! read from the swarm's secret store at
|
//! read from the swarm's secret store at
|
||||||
//! `swarm_secret_client::grafana::controller_token_path` under this daemon's
|
//! `swarm_secret_client::grafana::controller_token_path` under this daemon's
|
||||||
//! own certificate. `swarm-bao-grafana-controller-token`, on Grafana's host,
|
//! own certificate. The `controller-token` container of Grafana's pod mints it
|
||||||
//! mints it and replaces it whenever Grafana refuses the stored one, so a 401
|
//! and replaces it whenever Grafana refuses the stored one, so a 401 here
|
||||||
//! here re-reads the store once before giving up.
|
//! re-reads the store once before giving up.
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::future::Future;
|
use std::future::Future;
|
||||||
|
|
@ -177,8 +177,8 @@ async fn token_from_store() -> Result<String> {
|
||||||
match stored {
|
match stored {
|
||||||
Some(t) if !t.value.trim().is_empty() => Ok(t.value.trim().to_owned()),
|
Some(t) if !t.value.trim().is_empty() => Ok(t.value.trim().to_owned()),
|
||||||
_ => anyhow::bail!(
|
_ => anyhow::bail!(
|
||||||
"nothing at {path}: swarm-bao-grafana-controller-token, on the host that runs \
|
"nothing at {path}: the controller-token container of Grafana's pod \
|
||||||
Grafana, has not stored this daemon's Grafana token"
|
has not stored this daemon's Grafana token"
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
//! The Grafana agreement: where `swarm-controller`'s token for Grafana's API
|
//! The Grafana agreement: where `swarm-controller`'s token for Grafana's API
|
||||||
//! lives, and what the object at that path holds.
|
//! lives, and what the object at that path holds.
|
||||||
//!
|
//!
|
||||||
//! `swarm-bao-grafana-controller-token`, on the host that runs Grafana, mints
|
//! The `controller-token` container of Grafana's pod mints the token for a
|
||||||
//! the token for a Viewer service account and writes it here under Grafana's
|
//! Viewer service account and writes it here under the pod's own login;
|
||||||
//! own certificate; `swarm-controller` reads it under its own. Those two
|
//! `swarm-controller` reads it under its own. Those two principals' stanzas
|
||||||
//! principals' stanzas are the only ones in the store that cover this path.
|
//! are the only ones in the store that cover this path.
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue