2021-09-29 14:30:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
2023-08-21 11:56:56 +00:00
|
|
|
. ../../scripts/lib-update.sh
|
2022-04-20 11:15:42 +00:00
|
|
|
|
2023-08-21 11:56:56 +00:00
|
|
|
update_helm
|
2021-09-29 14:30:37 +00:00
|
|
|
|
2023-08-21 11:56:56 +00:00
|
|
|
update_jsonnet
|
2021-09-29 14:30:37 +00:00
|
|
|
|
2023-08-21 11:56:56 +00:00
|
|
|
# Install cert-mamanger mixin
|
2023-11-27 12:24:10 +00:00
|
|
|
jb install github.com/imusmanmalik/cert-manager-mixin@main
|
2021-09-29 14:30:37 +00:00
|
|
|
|
2023-08-21 11:56:56 +00:00
|
|
|
# Install rules
|
2021-09-29 14:30:37 +00:00
|
|
|
rm -rf rules && mkdir -p rules
|
2023-08-21 11:56:56 +00:00
|
|
|
jsonnet -J vendor -m rules rules.jsonnet
|
2021-09-29 14:30:37 +00:00
|
|
|
../kubezero-metrics/sync_prometheus_rules.py cert-manager-rules.yaml templates
|
2023-08-21 11:56:56 +00:00
|
|
|
|
|
|
|
# Fetch dashboards from Grafana.com and update ZDT CM
|
|
|
|
../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/grafana-dashboards.yaml
|
2023-11-27 12:24:10 +00:00
|
|
|
|
|
|
|
update_docs
|