From bd9f04c9880a38b0cf7b134bbce8d52e93eaffb0 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index 31158d615..a2f7b2424 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -51,3 +51,13 @@ 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: | + type kubectl || echo TODO + echo "Starting 'kubectl kustomize manifests/base'" + kubectl kustomize manifests/base + echo "Starting 'kubectl kustomize manifests/overlays/additional'" + kubectl kustomize manifests/overlays/additional \ No newline at end of file