diff --git a/.github/workflows/ci-kind-deploy.yml b/.github/workflows/ci-kind-deploy.yml index 267eca1e1..4ef5c7bbc 100644 --- a/.github/workflows/ci-kind-deploy.yml +++ b/.github/workflows/ci-kind-deploy.yml @@ -32,12 +32,6 @@ jobs: - name: Render chart manifests run: helm template ./helm > rendered-manifests.yaml - - name: Validate rendered manifests with kubeconform - uses: instrumenta/kubeconform-action@v1 - with: - files: rendered-manifests.yaml - args: -strict - unit-tests: name: Unit tests runs-on: ubuntu-latest diff --git a/scripts/helm_lint.sh b/scripts/helm_lint.sh new file mode 100644 index 000000000..d65b80b04 --- /dev/null +++ b/scripts/helm_lint.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# Lint a Helm chart directory. Exits non-zero on failure. + +set -euo pipefail + +CHART_DIR="${1:-./helm}" + +echo "Running helm lint for chart directory: ${CHART_DIR}" + +if ! command -v helm >/dev/null 2>&1; then + echo "helm is required but not found in PATH" >&2 + exit 2 +fi + +helm lint "${CHART_DIR}" \ + || { echo "helm lint failed" >&2; exit 1; } + +echo "helm lint succeeded for ${CHART_DIR}" \ No newline at end of file