Skip to content

Commit

Permalink
chore: bump chainsaw to v0.2.3 (#1029)
Browse files Browse the repository at this point in the history
* chore: bump chainsaw to v0.2.2

Signed-off-by: Charles-Edouard Brétéché <[email protected]>

* fix cel tests

Signed-off-by: Charles-Edouard Brétéché <[email protected]>

* fix cel tests

Signed-off-by: Charles-Edouard Brétéché <[email protected]>

* bump

Signed-off-by: Charles-Edouard Brétéché <[email protected]>

---------

Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored May 29, 2024
1 parent c89faea commit 8ce3280
Show file tree
Hide file tree
Showing 40 changed files with 80 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
set -e
kubectl apply -f ./.chainsaw/crds
- name: Install Chainsaw
uses: kyverno/action-install-chainsaw@995cddaee7702e849270b84fa44cdcebe7462da8 # v0.1.9
uses: kyverno/action-install-chainsaw@ef2517389320aae0fd7c067aa14b060eef08b76d # v0.2.3
- name: Test with Chainsaw
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: allowed-annotations
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: allowed-pod-priorities
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: block-ephemeral-containers
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
2 changes: 2 additions & 0 deletions other-cel/check-env-vars/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: check-env-vars
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/kyverno/chainsaw/main/.schemas/json/test-chainsaw-v1alpha1.json
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
name: check-service-accounts
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: deny-secret-service-account-token-type
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-all-secrets
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-localhost-services
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-secrets-from-env-vars
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: docker-socket-requires-label
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: enforce-pod-duration
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: ensure-probes-different
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: ensure-readonly-hostpath
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
2 changes: 2 additions & 0 deletions other-cel/forbid-cpu-limits/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: forbid-cpu-limits
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: imagepullpolicy-always
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: ingress-host-match-tls
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: limit-containers-per-pod
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: limit-hostpath-type-pv
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: memory-requests-equal-limits
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: metadata-match-regex
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: pdb-maxunavailable
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
2 changes: 2 additions & 0 deletions other-cel/prevent-bare-pods/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: prevent-naked-pods
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
2 changes: 2 additions & 0 deletions other-cel/prevent-cr8escape/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: prevent-cr8escape
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-capabilities
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-namespaces
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-path
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-ports-range
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-ports
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-host-process
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-privileged-containers
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-selinux
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: restrict-seccomp
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: restrict-sysctls
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-capabilities-strict
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: disallow-privilege-escalation
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: require-run-as-non-root-user
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: require-run-as-nonroot
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: restrict-seccomp-strict
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
creationTimestamp: null
name: restrict-volume-types
spec:
# disable templating because it can cause issues with CEL expressions
template: false
steps:
- name: step-01
try:
Expand Down

0 comments on commit 8ce3280

Please sign in to comment.