fix
This commit is contained in:
15
monitor/grafana/index.rhai
Normal file
15
monitor/grafana/index.rhai
Normal file
@@ -0,0 +1,15 @@
|
||||
const NS=config.namespace;
|
||||
const SRC=src;
|
||||
const DEST=dest;
|
||||
fn pre_pack() {
|
||||
shell("helm repo add grafana https://grafana.github.io/helm-charts");
|
||||
shell(`helm template grafana grafana/grafana --namespace=vynil-monitor -a "monitoring.coreos.com/v1/ServiceMonitor" -a "monitoring.coreos.com/v1/PrometheusRule" --values values.yml >${global::SRC}/chart.yaml`);
|
||||
}
|
||||
fn post_pack() {
|
||||
for file in [
|
||||
"*test*",
|
||||
"v1_ConfigMap_grafana.yaml"
|
||||
] {
|
||||
shell(`rm -f ${global::DEST}/${file}`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user