25 lines
1.0 KiB
Bash
Executable File
25 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
. ../../scripts/lib-update.sh
|
|
|
|
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
|
|
helm template charts/eck-operator/charts/eck-operator-crds --name-template logging > charts/eck-operator/crds/all-crds.yaml
|
|
|
|
rm -rf charts/eck-operator/charts
|
|
yq eval -Mi 'del(.dependencies)' charts/eck-operator/Chart.yaml
|
|
|
|
# FluentD
|
|
patch_chart fluentd
|
|
|
|
# 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
|