From 821c1b1a133dd5f772210ec4256cee69c9316715 Mon Sep 17 00:00:00 2001 From: samrobillard <22798020+samrobillard@users.noreply.github.com> Date: Thu, 3 Oct 2024 14:07:01 -0400 Subject: [PATCH] Add step to validate the HELM templates against Kubernetes API. (#71) Co-authored-by: Samuel Robillard --- .github/workflows/ci-aspnetcore.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci-aspnetcore.yml b/.github/workflows/ci-aspnetcore.yml index 8f773c1..4e1fa8f 100644 --- a/.github/workflows/ci-aspnetcore.yml +++ b/.github/workflows/ci-aspnetcore.yml @@ -24,6 +24,11 @@ jobs: - name: Lint aspnetcore Helm chart run: helm lint --strict ./charts/aspnetcore/ + - name: Validate HELM chart + run: | + helm plugin install https://github.com/melmorabity/helm-kubeconform --version 0.6.7.1 + helm kubeconform ./charts/aspnetcore/ --values ./charts/aspnetcore/values.yaml --strict + # Inspired from https://github.com/kedacore/charts/blob/v2.9.4/.github/workflows/ci-core.yml deploy: name: Deploy to Kubernetes ${{ matrix.kubernetesVersion }}