mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
19 lines
No EOL
654 B
YAML
19 lines
No EOL
654 B
YAML
|
|
# file path relative to project root
|
|
input:
|
|
policy: test/policy/validate/policy_validate_selinux_context.yaml
|
|
resource: test/resources/resource_validate_selinux_context.yaml
|
|
expected:
|
|
validation:
|
|
policyresponse:
|
|
policy: validate-selinux-options
|
|
resource:
|
|
kind: Pod
|
|
apiVersion: v1
|
|
namespace: default
|
|
name: busybox-selinux
|
|
rules:
|
|
- name: validate-selinux-options
|
|
type: Validation
|
|
message: "Validation error: SELinux level is required; Validation rule validate-selinux-options failed at path /spec/containers/0/securityContext/seLinuxOptions/"
|
|
success: false |