mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-12 10:56:54 +00:00
* Fix variable substitution when inline jmespath objects are defined Signed-off-by: Sambhav Kothari <sambhavs.email@gmail.com> * Add additional test cases which use brackets Signed-off-by: Sambhav Kothari <sambhavs.email@gmail.com> Co-authored-by: Jim Bugwadia <jim@nirmata.com>
36 lines
773 B
YAML
36 lines
773 B
YAML
name: test-preconditions
|
|
policies:
|
|
- policy.yaml
|
|
resources:
|
|
- resources.yaml
|
|
results:
|
|
- policy: test-jmespath
|
|
rule: test-jmespath
|
|
resource: test-valid1
|
|
kind: Pod
|
|
status: pass
|
|
- policy: test-jmespath
|
|
rule: test-jmespath
|
|
resource: test-valid2
|
|
kind: Pod
|
|
status: pass
|
|
- policy: test-jmespath
|
|
rule: test-jmespath
|
|
resource: test-valid3
|
|
kind: Pod
|
|
status: pass
|
|
- policy: test-jmespath
|
|
rule: test-jmespath
|
|
resource: test-invalid
|
|
kind: Pod
|
|
status: fail
|
|
- policy: namespace-validation
|
|
rule: namespace-validation
|
|
resource: test-invalid
|
|
kind: Namespace
|
|
status: fail
|
|
- policy: namespace-validation
|
|
rule: namespace-validation
|
|
resource: test-valid
|
|
kind: Namespace
|
|
status: pass
|