fix/connected_alert_receivers #150
@ -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 {
|
||||
|
@ -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?;
|
||||
|
Loading…
Reference in New Issue
Block a user