From 23f7f36256770853ba9f7109cd02f45ed2aa502e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Fri, 10 Nov 2023 23:43:11 +0100 Subject: [PATCH] [CI] Introduce interface for additional lint tasks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto Kröpke --- .github/linters/ct.yaml | 1 + charts/kube-prometheus-stack/lint.sh | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 charts/kube-prometheus-stack/lint.sh diff --git a/.github/linters/ct.yaml b/.github/linters/ct.yaml index a3db7fe15731..c9ad47c7385b 100644 --- a/.github/linters/ct.yaml +++ b/.github/linters/ct.yaml @@ -12,4 +12,5 @@ excluded-charts: # If not running on GCE, will error: "Failed to get GCE config" - prometheus-to-sd additional-commands: + - bash -c 'test -f "{{ .Path }}" && exec bash "{{ .Path }}/lint.sh"' # - helm unittest --helm3 --strict --file unittests/*.yaml --file 'unittests/**/*.yaml' {{ .Path }} diff --git a/charts/kube-prometheus-stack/lint.sh b/charts/kube-prometheus-stack/lint.sh new file mode 100644 index 000000000000..b4fc5c915aee --- /dev/null +++ b/charts/kube-prometheus-stack/lint.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +echo "lint test" + +exit 2