Skip to content

Commit

Permalink
chore: fix k8s compatibility test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobebway committed Jul 26, 2024
1 parent 308bb0c commit 906c1e6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/k8s-compatibility-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: k8s-compatility-test
name: k8s-compatibility-test

on:
workflow_dispatch:
Expand All @@ -8,9 +8,9 @@ on:
required: true

jobs:
k8s-compatility-test:
# Tests the compatibilty of Kubernetes version with Eventing and NATS modules.
# The steps of this jobs are:
k8s-compatibility-test:
# Tests the compatibility of Kubernetes version with Eventing and NATS modules.
# The steps of this job are:
# 1. Provision Gardener cluster with the given k8s version.
# 2. Install latest released versions of Istio, Api-gateway, NATS and Eventing modules.
# 3. Run eventing tests with NATS backend.
Expand Down Expand Up @@ -142,6 +142,26 @@ jobs:
run: |
make e2e-cleanup
- name: On error, fetch APIRules
if: failure()
run: |
kubectl get apirules.gateway.kyma-project.io -A -oyaml || true
- name: On error, fetch AuthorizationPolicies
if: failure()
run: |
kubectl get authorizationpolicies.security.istio.io -A -oyaml || true
- name: On error, fetch RequestAuthentications
if: failure()
run: |
kubectl get requestauthentications.security.istio.io -A -oyaml || true
- name: On error, fetch Subscriptions
if: failure()
run: |
kubectl get subscriptions.eventing.kyma-project.io -A -oyaml || true
- name: On error, fetch NATS CR
if: failure()
run: |
Expand All @@ -162,6 +182,11 @@ jobs:
run: |
kubectl get apigateways.operator.kyma-project.io -n kyma-system -o yaml
- name: On error, sleep for 2 hours
if: failure()
run: |
sleep 7200
- name: Cleanup modules
if: ${{ always() }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion hack/ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ install-nats-module:

.PHONY: install-istio-module
install-istio-module:
$(eval LATEST_ISTIO_VERSION := $(shell curl -s https://api.github.com/repos/kyma-project/istio-manager/releases/latest | jq -r '.tag_name'))
$(eval LATEST_ISTIO_VERSION := $(shell curl -s https://api.github.com/repos/kyma-project/istio/releases/latest | jq -r '.tag_name'))
@echo "Deploying Istio Manager: ${LATEST_ISTIO_VERSION}"
kubectl label namespace kyma-system istio-injection=enabled --overwrite
kubectl apply -f https://github.com/kyma-project/istio/releases/latest/download/istio-manager.yaml
Expand Down

0 comments on commit 906c1e6

Please sign in to comment.