Skip to content

Commit

Permalink
Apply monitoringlinter
Browse files Browse the repository at this point in the history
Apply monitoringlinter, which is designed to enforce
kubevirt/community#219 by ensuring that monitoring-related practices are
implemented within the pkg/monitoring directory using
operator-observability methods.

Signed-off-by: assafad <aadmi@redhat.com>
  • Loading branch information
assafad committed Mar 25, 2024
1 parent a068af5 commit f9bd23d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ test:
lint-metrics:
./hack/prom_metric_linter.sh --operator-name="kubevirt" --sub-operator-name="hpp"

lint-monitoring:
go install github.com/kubevirt/monitoring/monitoringlinter/cmd/monitoringlinter@e2be790
monitoringlinter ./...

generate-doc: build-docgen
_out/metricsdocs > docs/metrics.md

Expand Down
1 change: 1 addition & 0 deletions hack/run-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ source "${script_dir}"/common.sh
go version
# Validate
make lint-metrics
make lint-monitoring
make generate-doc
git difftool -y --trust-exit-code --extcmd=./hack/diff-csv.sh

Expand Down

0 comments on commit f9bd23d

Please sign in to comment.