1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/test/cli/test/custom-functions/kyverno-test.yaml
Tathagata Paul 1f3e625b99
Renamed test.yaml to kyverno-test.yaml (#2898)
Signed-off-by: 4molybdenum2 <tathagatapaul7@gmail.com>

Co-authored-by: Jim Bugwadia <jim@nirmata.com>
2022-01-14 08:45:59 +00:00

41 lines
1,013 B
YAML

name: test-custom-funcs
policies:
- policy.yaml
resources:
- resources.yaml
results:
- policy: base64
rule: secret-value-must-match-label
resource: base64-test-match
kind: Secret
status: pass
- policy: base64
rule: secret-value-must-match-label
resource: base64-test-no-match
kind: Secret
status: fail
- policy: pattern-match
rule: label-must-match-pattern
resource: pattern-match-test-match
kind: Namespace
status: pass
- policy: pattern-match
rule: label-must-match-pattern
resource: pattern-match-test-no-match
kind: Namespace
status: fail
- policy: path-canonicalize
rule: disallow-mount-containerd-sock
resource: mount-containerd-sock
kind: Pod
status: fail
- policy: test-parse-json
rule: test-json-parsing-jmespath
resource: valid-test
kind: ConfigMap
result: pass
- policy: test-parse-json
rule: test-json-parsing-jmespath
resource: invalid-test
kind: ConfigMap
result: fail