KubeZero/charts/kubezero-operators/update.sh

23 lines
733 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -ex
. ../../scripts/lib-update.sh
2023-11-21 20:01:07 +00:00
ECK_VERSION=$(yq eval '.dependencies[] | select(.name=="eck-operator") | .version' Chart.yaml)
update_helm
2023-11-21 20:01:07 +00:00
# fix ECK crds handling to adhere to proper helm v3 support which also fixes ArgoCD applying updates on upgrades
patch_chart eck-operator
mkdir charts/eck-operator/crds
helm template charts/eck-operator/charts/eck-operator-crds --name-template logging --kube-version 1.26 > charts/eck-operator/crds/all-crds.yaml
rm -rf charts/eck-operator/charts
yq eval -Mi 'del(.dependencies)' charts/eck-operator/Chart.yaml
2023-12-14 22:05:05 +00:00
# Create ZDT dashboard configmap
../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/cloudnative-pg/grafana-dashboards.yaml
2023-12-14 22:05:05 +00:00
update_docs