Files
2024-05-14 11:01:41 +02:00

16 lines
519 B
Plaintext

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