From b042b396a2ff4f00b3e131f22ae2023f69160d60 Mon Sep 17 00:00:00 2001 From: Michel Hollands Date: Thu, 17 Aug 2023 10:27:42 +0100 Subject: [PATCH] Temp checkin Signed-off-by: Michel Hollands --- .github/workflows/helm-ci.yml | 20 ++++++++++++++++++++ Makefile | 10 ++++++++++ charts/meta-monitoring/Makefile | 7 +++++++ charts/meta-monitoring/src/.yamllint.yaml | 4 ++++ 4 files changed, 41 insertions(+) create mode 100644 .github/workflows/helm-ci.yml create mode 100644 Makefile create mode 100644 charts/meta-monitoring/Makefile create mode 100644 charts/meta-monitoring/src/.yamllint.yaml diff --git a/.github/workflows/helm-ci.yml b/.github/workflows/helm-ci.yml new file mode 100644 index 0000000..e5ab883 --- /dev/null +++ b/.github/workflows/helm-ci.yml @@ -0,0 +1,20 @@ +--- +name: helm-ci +on: + pull_request: + paths: + - "charts/meta-monitoring/**" + +env: + CT_CONFIGFILE: charts/meta-monitoring/ct.yaml + +jobs: + call-lint: + name: Lint Helm Chart + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Lint Yaml + run: make helm-lint diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..00e72da --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +# Adapted from https://www.thapaliya.com/en/writings/well-documented-makefiles/ +.PHONY: help +help: ## Display this help and any documented user-facing targets. Other undocumented targets may be present in the Makefile. +help: + @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " %-45s %s\n", $$1, $$2 }' $(MAKEFILE_LIST) + +.PHONY: helm-lint + +helm-lint: ## run helm linter + $(MAKE) -BC charts/meta-monitoring lint diff --git a/charts/meta-monitoring/Makefile b/charts/meta-monitoring/Makefile new file mode 100644 index 0000000..9e81132 --- /dev/null +++ b/charts/meta-monitoring/Makefile @@ -0,0 +1,7 @@ +.DEFAULT_GOAL := lint +.PHONY: lint lint-yaml + +lint: lint-yaml + +lint-yaml: + yamllint -c $(CURDIR)/src/.yamllint.yaml $(CURDIR)/src diff --git a/charts/meta-monitoring/src/.yamllint.yaml b/charts/meta-monitoring/src/.yamllint.yaml new file mode 100644 index 0000000..19e5933 --- /dev/null +++ b/charts/meta-monitoring/src/.yamllint.yaml @@ -0,0 +1,4 @@ +--- +rules: + quoted-strings: + required: true