forked from NationTech/harmony
Clippy is now added to the `check` in the pipeline Co-authored-by: Ian Letourneau <letourneau.ian@gmail.com> Reviewed-on: NationTech/harmony#96
28 lines
749 B
Rust
28 lines
749 B
Rust
use non_blank_string_rs::NonBlankString;
|
|
use std::str::FromStr;
|
|
|
|
use crate::modules::helm::chart::HelmChartScore;
|
|
|
|
pub fn grafana_helm_chart_score(ns: &str) -> HelmChartScore {
|
|
let values = r#"
|
|
rbac:
|
|
namespaced: true
|
|
sidecar:
|
|
dashboards:
|
|
enabled: true
|
|
"#
|
|
.to_string();
|
|
|
|
HelmChartScore {
|
|
namespace: Some(NonBlankString::from_str(ns).unwrap()),
|
|
release_name: NonBlankString::from_str("grafana").unwrap(),
|
|
chart_name: NonBlankString::from_str("oci://ghcr.io/grafana/helm-charts/grafana").unwrap(),
|
|
chart_version: None,
|
|
values_overrides: None,
|
|
values_yaml: Some(values.to_string()),
|
|
create_namespace: true,
|
|
install_only: true,
|
|
repository: None,
|
|
}
|
|
}
|