From 2707b8b5af982fe97949275fa21bba7dc79c94b2 Mon Sep 17 00:00:00 2001 From: Jan Stourac Date: Wed, 29 May 2024 17:42:35 +0200 Subject: [PATCH] [CI] Add `kubectl kustomize` run to check our manifests definition --- .github/workflows/code-quality.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index 31158d615..d16246c3e 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -51,3 +51,14 @@ jobs: echo "Starting Hadolint" find . -name "Dockerfile" | xargs ./hadolint --config ./ci/hadolint-config.yaml echo "Hadolint done" + + # This simply checks that the manifests and respective kustomization.yaml finishes without an error. + - name: Check kustomize manifest + id: kustomize-manifests + run: | + set -x + kubectl version + echo "Starting 'kubectl kustomize manifests/base'" + kubectl kustomize manifests/base + echo "Starting 'kubectl kustomize manifests/overlays/additional'" + kubectl kustomize manifests/overlays/additional