Skip to content

Commit

Permalink
[kube-prometheus-stack] fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke committed Feb 23, 2024
1 parent a3c0706 commit 8dad1c8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions charts/kube-prometheus-stack/ci/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd "${SCRIPT_DIR}/../"

./hack/update_crds.sh
if ! git diff "{{ github.sha }}" --exit-code; then
if ! git diff "$GITHUB_SHA" --exit-code; then
echo "Please run ./hack/update_crds.sh"
exit 1
fi
Expand All @@ -24,21 +24,18 @@ PATH="$(go env GOPATH)/bin:$PATH"
export PATH

./sync_prometheus_rules.py
if ! git diff "{{ github.sha }}" --exit-code; then
if ! git diff "$GITHUB_SHA" --exit-code; then
echo "Changes inside rules are not supported!"
echo "Please run ./hack/sync_prometheus_rules.py"
exit 1
fi

./sync_grafana_dashboards.py
if ! git diff "{{ github.sha }}" --exit-code; then
if ! git diff "$GITHUB_SHA" --exit-code; then
echo "Changes inside dashboards are not supported!"
echo "Please run ./hack/sync_grafana_dashboards.py"
exit 1
fi

git diff "{{ github.sha }}"

find .. -name k8s-windows-node-rsrc-use.yaml

git diff "$GITHUB_SHA"
rm -rf ./venv ./*.git

0 comments on commit 8dad1c8

Please sign in to comment.