feat/impl_installable_crd_prometheus #170
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: NationTech/harmony#170
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/impl_installable_crd_prometheus"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
feat: implementation of Installable for CRDPrometheusIntroduction of Grafana trait and its impl for k8sanywhere
allows for CRDPrometheus to be installed via AlertingInterpret which standardizes the installation of alert receivers, alerting rules, and alert senders
@ -59,6 +60,22 @@ impl K8sClient {
})
}
pub async fn service_account_api(&self, namespace: &str) -> Api<ServiceAccount> {
This function doesn't seem to be used
@ -149,0 +308,4 @@
sender: &RHOBObservability,
inventory: &Inventory,
) -> Result<PreparationOutcome, PreparationError> {
todo!()
should it be implemented?
yes it should but this is out of scope for this pr, im only working on impl installable for alert sender CRDPrometheus
@ -197,3 +588,1 @@
receivers: receivers.unwrap_or_default(),
service_monitors: vec![],
prometheus_rules: vec![],
if let Some(sm) = service_monitors {
Small detail, but we could also use
service_monitors: service_monitors.unwrap_or_default()
here:@ -468,0 +880,4 @@
if tenant.is_some() {
namespace_scope = true;
}
let _grafana_operator_score = grafana_helm_chart_score(namespace, namespace_scope)
I don't think we should completely ignore the error here
@ -469,2 +470,2 @@
let mut json_data = BTreeMap::new();
json_data.insert("timeInterval".to_string(), "5s".to_string());
// let mut json_data = BTreeMap::new();
// json_data.insert("timeInterval".to_string(), "5s".to_string());
dead code?
Checkout
From your project repository, check out a new branch and test the changes.