2022-10-20 12:17:33 +00:00
|
|
|
name: Conformance tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
2022-11-23 13:29:57 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-10-20 12:17:33 +00:00
|
|
|
jobs:
|
2022-11-04 14:00:31 +00:00
|
|
|
run-conformance:
|
2022-10-20 12:17:33 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-11-04 14:00:31 +00:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
|
2022-10-20 12:17:33 +00:00
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Setup go
|
2022-12-06 06:49:45 +00:00
|
|
|
uses: actions/setup-go@d0a58c1c4d2b25278816e339b944508c875f3613 # pin@v3.3.1
|
2022-10-20 12:17:33 +00:00
|
|
|
with:
|
|
|
|
go-version: ~1.18.6
|
2022-11-07 18:01:25 +00:00
|
|
|
- name: Prepare environment
|
2022-11-04 14:00:31 +00:00
|
|
|
run: make kind-create-cluster kind-deploy-kyverno
|
|
|
|
- name: Wait for Kyverno to start
|
|
|
|
run: sleep 60
|
|
|
|
- name: Test with kuttl
|
2022-11-07 18:01:25 +00:00
|
|
|
run: make test-kuttl
|
2022-11-14 20:34:56 +00:00
|
|
|
- name: Debug failure
|
|
|
|
if: failure()
|
|
|
|
run: |
|
|
|
|
kubectl get mutatingwebhookconfigurations,validatingwebhookconfigurations
|
|
|
|
kubectl -n kyverno get pod
|
|
|
|
kubectl -n kyverno describe pod | grep -i events -A10
|
2022-12-11 21:22:06 +00:00
|
|
|
kubectl -n kyverno logs deploy/kyverno --all-containers -p || true
|
|
|
|
kubectl -n kyverno logs deploy/kyverno --all-containers
|
|
|
|
kubectl -n kyverno logs deploy/cleanup-controller --all-containers -p || true
|
|
|
|
kubectl -n kyverno logs deploy/cleanup-controller --all-containers
|