Skip to content

Commit

Permalink
fix: disallow-privilege-escalation (cel)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly committed Oct 7, 2024
1 parent 72247b8 commit 564a49c
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
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:
- apply:
- create:
file: ../disallow-privilege-escalation.yaml
- patch:
resource:
Expand All @@ -24,16 +23,16 @@ spec:
file: policy-ready.yaml
- name: step-02
try:
- apply:
- create:
file: pod-good.yaml
- apply:
- create:
expect:
- check:
($error != null): true
file: pod-bad.yaml
- apply:
- create:
file: podcontroller-good.yaml
- apply:
- create:
expect:
- check:
($error != null): true
Expand Down

0 comments on commit 564a49c

Please sign in to comment.