Skip to content

Commit

Permalink
fix: cleanup, update k8s versions, make tests required
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <[email protected]>
  • Loading branch information
vishal-chdhry committed Feb 5, 2024
1 parent d2d486d commit bea2a13
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 53 deletions.
18 changes: 18 additions & 0 deletions .github/actions/failure-logs/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Logs

description: Show pods logs

runs:
using: composite
steps:
- shell: bash
run: |
kubectl get apiservices v1alpha2.wgpolicyk8s.io v1.reports.kyverno.io
kubectl -n reports-server get pod
kubectl -n reports-server describe pod | grep -i events -A10
- shell: bash
run: |
kubectl -n reports-server logs deploy/reports-server --all-containers -p || true
- shell: bash
run: |
kubectl -n reports-server logs deploy/reports-server --all-containers
31 changes: 0 additions & 31 deletions .github/actions/logs/action.yaml

This file was deleted.

36 changes: 14 additions & 22 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,16 @@ jobs:
fail-fast: false
matrix:
k8s-version:
- name: v1.25
version: v1.25.11
- name: v1.26
version: v1.26.6
- name: v1.27
version: v1.27.3
- name: v1.28
version: v1.28.0
- name: v1.29
version: v1.29.0
tests:
# - ^autogen$
# - ^background-only$
# - ^cleanup$
# - ^deferred$
# - ^events$
# - ^exceptions$
# - ^filter$
# - ^generate$/^clusterpolicy$
# - ^generate$/^policy$
# - ^generate$/^validation$
# - ^globalcontext$
# - ^mutate$
# - ^policy-validation$
# - ^rangeoperators$
# - ^rbac$
- ^reports$
# - ^validate$
# - ^verify-manifests$
# - ^verifyImages$
# - ^webhooks$
runs-on: ubuntu-latest
name: ${{ matrix.k8s-version.name }} - ${{ matrix.tests }}
steps:
Expand Down Expand Up @@ -97,6 +78,10 @@ jobs:
run: |
set -e
kubectl wait --namespace kyverno --for=condition=ready pod --selector '!job-name' --timeout=60s
- name: API Service status
run: |
set -e
kubectl get apiservices v1alpha2.wgpolicyk8s.io v1.reports.kyverno.io
- name: Install Chainsaw
uses: kyverno/action-install-chainsaw@56be3cb4ec65a987b6ef4d7ab3a55ee17760a57c # v0.1.2
with:
Expand All @@ -109,4 +94,11 @@ jobs:
cd ./kyverno/test/conformance/chainsaw && chainsaw test --config ./../../../../.chainsaw.yaml --include-test-regex '^chainsaw$/${{ matrix.tests }}' --no-color=false
- name: Debug failure
if: failure()
uses: ./.github/actions/logs
uses: ./.github/actions/failure-logs

required:
needs:
- chainsaw
runs-on: ubuntu-latest
steps:
- run: echo "Conformance tests passed!"

0 comments on commit bea2a13

Please sign in to comment.