mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
* fix(validate): custom match conditions errors Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> * test(webhook): failing match conditions --------- Signed-off-by: Khaled Emara <khaled.emara@nirmata.com> Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
13 lines
286 B
YAML
Executable file
13 lines
286 B
YAML
Executable file
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
kind: Test
|
|
metadata:
|
|
name: failing-match-conditions
|
|
spec:
|
|
steps:
|
|
- name: expect-policy-failure
|
|
try:
|
|
- apply:
|
|
expect:
|
|
- check:
|
|
($error != null): true
|
|
file: policy.yaml
|