Added the chainsaw tests for pod security and rbac policies #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ChainSaw Test | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run-e2etest: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
k8s-version: [v1.29.2, v1.28.7, v1.27.11, v1.26.14, v1.25.16] | |
# For n4k-versions 1.10, and 1.11 | |
# "devel" refers to the RC version. | |
# If there are no new RC versions available, it installs the latest n4k version. | |
n4k-chart-version: [3.0.18, 3.1.1, devel] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Prepare environment | |
run: K8S_VERSION=${{ matrix.k8s-version }} make kind-create-cluster | |
- name: Install kyverno | |
run: N4K_VERSION=${{ matrix.n4k-chart-version }} make kind-deploy-kyverno | |
- name: Check Kyverno status | |
run: make wait-for-kyverno | |
- name: Install Chainsaw | |
uses: kyverno/[email protected] | |
- name: Verify Chainsaw Installation | |
run: chainsaw version | |
- name: Test with Chainsaw | |
run: make test-chainsaw |