fix: change request from pr
All checks were successful
Run Check Script / check (pull_request) Successful in 1m23s
All checks were successful
Run Check Script / check (pull_request) Successful in 1m23s
This commit is contained in:
parent
55da0cb1ea
commit
61c1d22b55
@ -19,9 +19,7 @@ pub struct AlertingInterpret<S: AlertSender> {
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl<S: AlertSender + Installable<T>, T: Topology + HelmCommand> Interpret<T>
|
||||
for AlertingInterpret<S>
|
||||
{
|
||||
impl<S: AlertSender + Installable<T>, T: Topology> Interpret<T> for AlertingInterpret<S> {
|
||||
async fn execute(
|
||||
&self,
|
||||
inventory: &Inventory,
|
||||
|
@ -198,7 +198,7 @@ prometheus:
|
||||
|
||||
let alert_manager_yaml =
|
||||
serde_yaml::to_string(&alert_manager_values).expect("Failed to serialize YAML");
|
||||
debug!("serialed alert manager: \n {:#}", alert_manager_yaml);
|
||||
debug!("serialized alert manager: \n {:#}", alert_manager_yaml);
|
||||
values.push_str(&alert_manager_yaml);
|
||||
debug!("full values.yaml: \n {:#}", values);
|
||||
HelmChartScore {
|
||||
|
@ -41,26 +41,6 @@ impl<T: Topology + HelmCommand> Installable<T> for Prometheus {
|
||||
}
|
||||
}
|
||||
|
||||
// //before we talked about having a trait installable and a trait installer for the topology
|
||||
// // i feel like that might still be necessary to meet the requirement of inventory and topology on
|
||||
// // the score.create_interpret().execute(inventory, topology) method
|
||||
// #[async_trait]
|
||||
// pub trait Installer {
|
||||
// async fn install(&self, inventory: &Inventory, sender: Box<dyn Installable>) -> Result<(), InterpretError>;
|
||||
// }
|
||||
//
|
||||
// #[async_trait]
|
||||
// impl Installer for K8sAnywhereTopology {
|
||||
// async fn install(
|
||||
// &self,
|
||||
// inventory: &Inventory,
|
||||
// installable: Box<dyn Installable<T>>,
|
||||
// ) -> Result<(), InterpretError> {
|
||||
// installable.ensure_installed(inventory, self).await?;
|
||||
// Ok(())
|
||||
// }
|
||||
// }
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Prometheus {
|
||||
pub config: Arc<Mutex<KubePrometheusConfig>>,
|
||||
@ -103,9 +83,4 @@ impl Prometheus {
|
||||
pub trait PrometheusReceiver: Send + Sync + std::fmt::Debug {
|
||||
fn name(&self) -> String;
|
||||
async fn configure_receiver(&self) -> AlertManagerChannelConfig;
|
||||
//this probably needs to be a type
|
||||
//that
|
||||
//represents
|
||||
//a
|
||||
//promtheusreceiver
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user