From 5e729357dc13e106bfc971676923585ce6cd5d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20B=C3=A4hler?= Date: Thu, 26 Oct 2023 11:14:12 +0200 Subject: [PATCH] chore(chart): fix helm testing action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Oliver Bähler --- .github/workflows/helm-test.yml | 27 +-------------------------- Makefile | 2 ++ 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/.github/workflows/helm-test.yml b/.github/workflows/helm-test.yml index e855e57eb..43088661d 100644 --- a/.github/workflows/helm-test.yml +++ b/.github/workflows/helm-test.yml @@ -45,29 +45,4 @@ jobs: - name: Run chart-testing (install) run: make helm-test - if: steps.list-changed.outputs.changed == 'true' - - # ATTENTION: This is a workaround for the upcoming ApiVersion Conversions for the capsule CRDs - # With this workflow the current docker image is build and loaded into kind, otherwise the install fails - # In the future this must be removed and the chart-testing-action must be used - - name: Run chart-testing (install) - run: make helm-test - if: steps.list-changed.outputs.changed == 'true' - - ## Create KIND Cluster - - name: Create kind cluster - uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0 - if: steps.list-changed.outputs.changed == 'true' - # Install Required Operators/CRDs - - name: Prepare Cluster Operators/CRDs - run: | - # Cert-Manager CRDs - kubectl create -f https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.crds.yaml - - # Prometheus CRDs - kubectl create -f https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.58.0/bundle.yaml - if: steps.list-changed.outputs.changed == 'true' - # Install Charts - - name: Run chart-testing (install) - run: ct install --debug --config ./.github/configs/ct.yaml - if: steps.list-changed.outputs.changed == 'true' + if: steps.list-changed.outputs.changed == 'true' \ No newline at end of file diff --git a/Makefile b/Makefile index 551da98d4..44dc026e3 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,8 @@ helm-test: kind ct ko-build-all @kind create cluster --wait=60s --name capsule-charts @kind load docker-image --name capsule-charts $(LOCAL_CAPSULE_IMG) @kubectl create ns capsule-system + @kubectl create -f https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.crds.yaml + @kubectl create -f https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.58.0/bundle.yaml @ct install --config $(SRC_ROOT)/.github/configs/ct.yaml --namespace=capsule-system --all --debug @kind delete cluster --name capsule-charts