16 lines
519 B
Plaintext
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}`);
|
|
}
|
|
}
|