Skip to content

Commit

Permalink
Configure SELinux label on cloudwatch integration mounts (#1821)
Browse files Browse the repository at this point in the history
Also make it easy to turn off checking the cloudwatch integration.

Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry authored Oct 3, 2024
1 parent 2c329de commit 8d97a39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ export SHELLOPTS := pipefail:errexit
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rule

CHECK_CLOUDWATCH_INTEGRATION ?= 1

include docs.mk

ifeq ($(CHECK_CLOUDWATCH_INTEGRATION),1)
.PHONY: docs
docs: check-cloudwatch-integration
endif

check-cloudwatch-integration:
$(PODMAN) run -v $(shell git rev-parse --show-toplevel):/repo -v $(shell pwd):/docs -w /repo golang:1.22.7-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go check /docs/sources/reference/components/prometheus/prometheus.exporter.cloudwatch.md
$(PODMAN) run -v "$(shell git rev-parse --show-toplevel):/repo:z" -v "$(shell pwd):/docs:z" -w /repo golang:1.22.7-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go check /docs/sources/reference/components/prometheus/prometheus.exporter.cloudwatch.md

generate-cloudwatch-integration:
$(PODMAN) run -v $(shell git rev-parse --show-toplevel):/repo -v $(shell pwd):/docs -w /repo golang:1.22.7-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go generate
$(PODMAN) run -v "$(shell git rev-parse --show-toplevel):/repo:z" -v "$(shell pwd):/docs:z" -w /repo golang:1.22.7-bullseye go run internal/static/integrations/cloudwatch_exporter/docs/doc.go generate

0 comments on commit 8d97a39

Please sign in to comment.