fix/connected_alert_receivers #150

Merged
johnride merged 2 commits from fix/connected_alert_receivers into master 2025-09-09 20:24:00 +00:00
2 changed files with 1 additions and 10 deletions
Showing only changes of commit a5f9ecfcf7 - Show all commits

View File

@ -30,7 +30,6 @@ pub struct MonitoringStackSpec {
/// Resource selector for workloads monitored by this stack.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub resource_selector: Option<LabelSelector>,
}
impl Default for MonitoringStackSpec {

View File

@ -261,15 +261,9 @@ impl RHOBAlertingInterpret {
let stack = MonitoringStack {
metadata: ObjectMeta {
name: Some(format!("{}-monitoring", self.sender.namespace.clone()).into()),
namespace: Some(self.sender.namespace.clone()),
labels: Some(
[
("monitoring-stack".into(), "true".into()),
]
.into(),
),
labels: Some([("monitoring-stack".into(), "true".into())].into()),
..Default::default()
},
spec: MonitoringStackSpec {
@ -279,7 +273,6 @@ impl RHOBAlertingInterpret {
match_labels: Default::default(),
match_expressions: vec![],
}),
},
};
@ -288,7 +281,6 @@ impl RHOBAlertingInterpret {
.await
.map_err(|e| InterpretError::new(e.to_string()))?;
let alert_manager_domain = topology
.get_domain(format!("alert-manager-{}", self.sender.namespace.clone()))
.await?;