Files
fission-src/hack/lint-dashboards.sh
T
05130949ad Add grafana dashboards and configmap creation for auto provisioning (#2519)
* Add grafana dashboards and configmap creation
* Fix Data source, job and template rules
* Add units to all panels
* fix units and fix linting issues
* Enable verbose linting for dashboards

Co-authored-by: shaunak_deshmukh <shaunak@infracloud.io>
2022-09-12 17:10:07 +05:30

16 lines
344 B
Bash
Executable File

if ! command -v dashboard-linter >/dev/null 2>&1; then
echo "dashboard-linter is not installed"
exit 1;
fi
BASE_PATH=$(pwd)
if [[ -z "$BASE_PATH" ]] ; then
BASE_PATH=$(GITHUB_WORKSPACE)
fi
DASHBOARD_PATH="$BASE_PATH/charts/fission-all/dashboards/*"
for f in $DASHBOARD_PATH
do
dashboard-linter lint --strict --verbose $f
done