2021-03-05 15:53:02 +00:00
|
|
|
#!/bin/bash
|
2021-12-15 22:19:52 +00:00
|
|
|
set -ex
|
2021-03-05 15:53:02 +00:00
|
|
|
|
2023-08-23 11:51:34 +00:00
|
|
|
. ../../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)
|
2021-03-05 15:53:02 +00:00
|
|
|
|
2023-08-23 11:51:34 +00:00
|
|
|
patch_chart eck-operator
|
2021-05-13 22:11:13 +00:00
|
|
|
|
2023-08-23 11:51:34 +00:00
|
|
|
# fix ECK crds handling to adhere to proper helm v3 support which also fixes ArgoCD applying updates on upgrades
|
2021-05-13 22:11:13 +00:00
|
|
|
mkdir charts/eck-operator/crds
|
|
|
|
helm template charts/eck-operator/charts/eck-operator-crds --name-template logging > charts/eck-operator/crds/all-crds.yaml
|
2023-08-23 11:51:34 +00:00
|
|
|
|
2021-05-13 22:11:13 +00:00
|
|
|
rm -rf charts/eck-operator/charts
|
2021-12-15 22:19:52 +00:00
|
|
|
yq eval -Mi 'del(.dependencies)' charts/eck-operator/Chart.yaml
|
2021-05-13 22:11:13 +00:00
|
|
|
|
2021-03-10 09:32:12 +00:00
|
|
|
# FluentD
|
2023-08-23 11:51:34 +00:00
|
|
|
patch_chart fluentd
|
2021-04-25 20:19:06 +00:00
|
|
|
|
|
|
|
# Fetch dashboards from Grafana.com and update ZDT CM
|
2022-11-14 13:11:46 +00:00
|
|
|
../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
|