mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
18aeb26a1d
Signed-off-by: ShutingZhao <shuting@nirmata.com> Signed-off-by: ShutingZhao <shuting@nirmata.com>
45 lines
1.5 KiB
YAML
45 lines
1.5 KiB
YAML
name: Conformance tests
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
- 'release*'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
run-conformance:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
k8s-version: [v1.24.7, v1.25.3, v1.26.0]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
|
|
- name: Unshallow
|
|
run: git fetch --prune --unshallow
|
|
- name: Setup go
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
|
with:
|
|
go-version: ~1.19.4
|
|
- name: Prepare environment
|
|
run: |
|
|
export KIND_IMAGE=kindest/node:${{ matrix.k8s-version }}
|
|
make kind-create-cluster kind-deploy-kyverno
|
|
- name: Wait for Kyverno to start
|
|
run: sleep 60
|
|
- name: Test with kuttl
|
|
run: make test-kuttl
|
|
- name: Debug failure
|
|
if: failure()
|
|
run: |
|
|
kubectl get mutatingwebhookconfigurations,validatingwebhookconfigurations
|
|
kubectl -n kyverno get pod
|
|
kubectl -n kyverno describe pod | grep -i events -A10
|
|
kubectl -n kyverno logs deploy/kyverno --all-containers -p || true
|
|
kubectl -n kyverno logs deploy/kyverno --all-containers
|
|
kubectl -n kyverno logs deploy/kyverno-cleanup-controller --all-containers -p || true
|
|
kubectl -n kyverno logs deploy/kyverno-cleanup-controller --all-containers
|