kubezero/charts/kubezero-istio/update.sh

19 lines
709 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -ex
2023-08-22 12:48:33 +00:00
. ../../scripts/lib-update.sh
#login_ecr_public
update_helm
2021-12-15 22:19:52 +00:00
export ISTIO_VERSION=$(yq eval '.dependencies[] | select(.name=="base") | .version' Chart.yaml)
export KIALI_VERSION=$(yq eval '.dependencies[] | select(.name=="kiali-server") | .version' Chart.yaml)
2020-11-24 14:44:57 +00:00
# Get matching istioctl
[ -x istioctl ] && [ "$(./istioctl version --remote=false)" == $ISTIO_VERSION ] || { curl -sL https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istioctl-${ISTIO_VERSION}-linux-amd64.tar.gz | tar xz; chmod +x istioctl; }
# Fetch dashboards from Grafana.com and update ZDT CM
../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/grafana-dashboards.yaml
update_docs