This commit is contained in:
2024-05-14 11:01:41 +02:00
parent 372c45c5b8
commit e58f82534c
10 changed files with 96 additions and 80 deletions

View 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}`);
}
}