1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-13 15:57:31 +00:00
kyverno/test/scenarios/test/scenario_validate_sysctl_configs.yaml
shivkumar dudhani 21d174a2bf merge changes
2019-10-14 12:46:44 -07:00

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