KubeZero/charts/kubezero-cert-manager/update.sh

22 lines
503 B
Bash
Raw Normal View History

#!/bin/bash
set -ex
2023-08-21 11:56:56 +00:00
. ../../scripts/lib-update.sh
2023-08-21 11:56:56 +00:00
update_helm
2023-08-21 11:56:56 +00:00
update_jsonnet
2023-08-21 11:56:56 +00:00
# Install cert-mamanger mixin
jb install github.com/imusmanmalik/cert-manager-mixin@main
2023-08-21 11:56:56 +00:00
# Install rules
rm -rf rules && mkdir -p rules
2023-08-21 11:56:56 +00:00
jsonnet -J vendor -m rules rules.jsonnet
../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
update_docs