From 5d8b38d748dbc144f7f785e555f721d94ad732be Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sat, 17 Aug 2024 20:50:39 +0000 Subject: [PATCH 1/3] Fix tests --- .github/workflows/integration-test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 666d0a9d..796b5974 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -19,6 +19,10 @@ jobs: with: fetch-depth: 0 + - name: compile + run: | + ./kapitan compile + - uses: azure/setup-kubectl@v3 id: install From bf671bf80675216fed577d3578563e23a38f1bfb Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sat, 17 Aug 2024 21:04:49 +0000 Subject: [PATCH 2/3] fix integration test --- .github/workflows/integration-test.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 796b5974..b8cf787c 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -22,17 +22,19 @@ jobs: - name: compile run: | ./kapitan compile - + - uses: azure/setup-kubectl@v3 id: install - - name: Create kind cluster - uses: helm/kind-action@v1.2.0 - with: - cluster_name: kind - - - name: Check connectivity to the cluster - run: ./compiled/tutorial/scripts/kubectl get pods + - name: setups the cluster + run: | + ./compiled/tutorial/scripts/setup_cluster + ./compiled/tutorial/scripts/setup_context + ./compiled/tutorial/scripts/kubectl get pods - name: Run chart-testing (install) - run: ./compiled/tutorial/scripts/apply \ No newline at end of file + run: ./compiled/tutorial/scripts/apply + + - name: setups the cluster + run: | + ./compiled/tutorial/scripts/kubectl rollout status deployment echo-server -w --timeout=60s \ No newline at end of file From 92dbaf49e52f490b1e3530110b5e73dcd44663dc Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sat, 17 Aug 2024 21:08:05 +0000 Subject: [PATCH 3/3] Improve integration tests --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8373d0ab..a9a23126 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Kapitan Reference Setup +[![CI](https://github.com/kapicorp/kapitan-reference/actions/workflows/integration-test.yml/badge.svg)](https://github.com/kapicorp/kapitan-reference/actions/workflows/integration-test.yml) + This repository is meant to be a way to bootstrap your [Kapitan](https://kapitan.dev) setup to get you up and running. It is meant to help you make use of best practices and libraries that can make Kapitan the ultimate tool for all your configuration needs.