KubeZero/charts/kubezero-logging/update.sh

29 lines
1.1 KiB
Bash
Raw Normal View History

#!/bin/bash
2021-12-15 22:19:52 +00:00
set -ex
. ../../scripts/lib-update.sh
2021-12-15 22:19:52 +00:00
ECK_VERSION=$(yq eval '.dependencies[] | select(.name=="eck-operator") | .version' Chart.yaml)
FLUENT_BIT_VERSION=$(yq eval '.dependencies[] | select(.name=="fluent-bit") | .version' Chart.yaml)
FLUENTD_VERSION=$(yq eval '.dependencies[] | select(.name=="fluentd") | .version' Chart.yaml)
patch_chart eck-operator
# fix ECK crds handling to adhere to proper helm v3 support which also fixes ArgoCD applying updates on upgrades
mkdir charts/eck-operator/crds
2023-08-23 12:20:50 +00:00
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
2021-12-15 22:19:52 +00:00
yq eval -Mi 'del(.dependencies)' charts/eck-operator/Chart.yaml
2023-08-23 12:20:50 +00:00
# fluent-bit
patch_chart fluent-bit
# FluentD
patch_chart fluentd
2023-08-23 12:20:50 +00:00
rm -f charts/fluentd/templates/files.conf/systemd.yaml
# Fetch dashboards from Grafana.com and update ZDT CM
../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/fluent-bit/grafana-dashboards.yaml
../kubezero-metrics/sync_grafana_dashboards.py dashboards-es.yaml templates/eck/grafana-dashboards.yaml