mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
* add test cases for yaml verification feature Signed-off-by: Riko Kudo <rurikudo@ibm.com> * update policies to use the new schema version Signed-off-by: Riko Kudo <rurikudo@ibm.com> Signed-off-by: Riko Kudo <rurikudo@ibm.com> Co-authored-by: Chip Zoller <chipzoller@gmail.com> Co-authored-by: shuting <shuting@nirmata.com>
21 lines
No EOL
487 B
YAML
21 lines
No EOL
487 B
YAML
name: yaml-verification
|
|
policies:
|
|
- policies.yaml
|
|
resources:
|
|
- resources.yaml
|
|
results:
|
|
- policy: validate-yaml
|
|
rule: validate-yaml
|
|
resource: test-service # no signature
|
|
kind: Service
|
|
result: fail
|
|
- policy: validate-yaml
|
|
rule: validate-yaml
|
|
resource: test-service2 # one signature
|
|
kind: Service
|
|
result: pass
|
|
- policy: validate-yaml
|
|
rule: validate-yaml-multi-sig
|
|
resource: test-service3 # multi signature
|
|
kind: Service
|
|
result: pass |