mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-13 15:57:31 +00:00
19 lines
No EOL
665 B
YAML
19 lines
No EOL
665 B
YAML
|
|
# file path relative to project root
|
|
input:
|
|
policy: samples/more/policy_validate_sysctl_configs.yaml
|
|
resource: test/scenarios/resources/resource_validate_sysctl_configs.yaml
|
|
expected:
|
|
validation:
|
|
policyresponse:
|
|
policy: validate-allow-portrange-with-sysctl
|
|
resource:
|
|
kind: Pod
|
|
apiVersion: v1
|
|
namespace: ''
|
|
name: nginx
|
|
rules:
|
|
- name: allow-portrange-with-sysctl
|
|
type: Validation
|
|
message: "Validation rule 'allow-portrange-with-sysctl' failed at '/spec/securityContext/sysctls/0/value/' for resource Pod//nginx. Allowed port range is from 1024 to 65535"
|
|
success: false |