From 34bafd49f32d2e818bb510ade941ab55dd1957f9 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index 31158d615..0edf0aec6 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -51,3 +51,18 @@ 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: | + kubectl version --client=true + echo "----------------------------------------------------------" + echo "Starting 'kubectl kustomize manifests/base'" + echo "----------------------------------------------------------" + kubectl kustomize manifests/base + + echo "----------------------------------------------------------" + echo "Starting 'kubectl kustomize manifests/overlays/additional'" + echo "----------------------------------------------------------" + kubectl kustomize manifests/overlays/additional