fix: Removed forgotten refactoring bits and formatting
All checks were successful
Run Check Script / check (push) Successful in 1m46s
Run Check Script / check (pull_request) Successful in 1m48s

This commit is contained in:
Jean-Gabriel Gill-Couture 2025-05-28 15:19:39 -04:00
parent f4ef895d2e
commit 5aa9dc701f
5 changed files with 8 additions and 13 deletions

View File

@ -4,9 +4,7 @@ use harmony::{
maestro::Maestro,
modules::{
lamp::{LAMPConfig, LAMPScore},
monitoring::monitoring_alerting::{
AlertChannel, MonitoringAlertingStackScore, WebhookServiceType,
},
monitoring::monitoring_alerting::{AlertChannel, MonitoringAlertingStackScore},
},
topology::{K8sAnywhereTopology, Url},
};
@ -50,10 +48,6 @@ async fn main() {
let mut monitoring_stack_score = MonitoringAlertingStackScore::new();
monitoring_stack_score.namespace = Some(lamp_stack.config.namespace.clone());
monitoring_stack_score.alert_channel = Some(AlertChannel::WebHookUrl {
url: url,
webhook_service_type: WebhookServiceType::Discord,
});
maestro.register_all(vec![Box::new(lamp_stack), Box::new(monitoring_stack_score)]);
// Here we bootstrap the CLI, this gives some nice features if you need them

View File

@ -2,7 +2,6 @@ use serde::Serialize;
use super::monitoring_alerting::AlertChannel;
#[derive(Debug, Clone, Serialize)]
pub struct KubePrometheusConfig {
pub namespace: String,

View File

@ -26,8 +26,10 @@ environment:
Some(HelmChartScore {
namespace: Some(NonBlankString::from_str(&config.namespace).unwrap()),
release_name: NonBlankString::from_str(&name).unwrap(),
chart_name: NonBlankString::from_str("oci://hub.nationtech.io/library/alertmanager-discord")
.unwrap(),
chart_name: NonBlankString::from_str(
"oci://hub.nationtech.io/library/alertmanager-discord",
)
.unwrap(),
chart_version: None,
values_overrides: None,
values_yaml: Some(values.to_string()),

View File

@ -1,4 +1,4 @@
mod config;
mod discord_alert_manager;
mod kube_prometheus;
pub mod monitoring_alerting;
mod discord_alert_manager;
mod config;

View File

@ -116,7 +116,7 @@ impl MonitoringAlertingStackInterpret {
outcomes.push(outcome);
}
for result in outcomes {
result?;
result?;
}
Ok(Outcome::success("All alert channels deployed".to_string()))