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 7, 2024
1 parent d284f72 commit d8fc1d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ lint:
./pkg/... \
./tests/... \
"
hack/dockerized "monitoringlinter .pkg./..."

lint-metrics:
hack/dockerized "./hack/prom-metric-linter/metrics_collector.sh > metrics.json"
Expand Down
4 changes: 4 additions & 0 deletions hack/builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ RUN set -x && \
source /etc/profile.d/gimme.sh && \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOROOT)"/bin $GOLANGCI_LINT_VERSION

RUN set -x && \
source /etc/profile.d/gimme.sh && \
go install -v github.com/kubevirt/monitoring/monitoringlinter/cmd/monitoringlinter@v0.0.4

RUN pip3 install --upgrade operator-courier==${OPERATOR_COURIER_VERSION}

RUN set -x && \
Expand Down

0 comments on commit d8fc1d5

Please sign in to comment.