-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
Added the chainsaw tests for pod security and rbac policies
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Configuration | ||
metadata: | ||
creationTimestamp: null | ||
name: configuration | ||
spec: | ||
parallel: 1 | ||
timeouts: | ||
apply: 1m30s | ||
assert: 1m30s | ||
cleanup: 2m30s | ||
delete: 1m30s | ||
error: 1m30s | ||
exec: 1m30s | ||
fullName: true | ||
forceTerminationGracePeriod: 5s | ||
delayBeforeCleanup: 3s |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
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, v1.24.12, v1.23.17] | ||
# For n4k-versions 1.9 | ||
n4k-chart-version: [1.6.11] | ||
|
||
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 |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.