1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/scenarios/other/scenario_validate_disallow_default_serviceaccount.yaml
Shuting Zhao ea66d7a7b8 fix CI
2020-05-20 13:58:56 -07:00

18 lines
No EOL
723 B
YAML

# file path relative to project root
input:
policy: test/policy/validate/policy_validate_disallow_default_serviceaccount.yaml
resource: test/resources/resource_validate_disallow_default_serviceaccount.yaml
expected:
validation:
policyresponse:
policy: validate-disallow-default-serviceaccount
resource:
kind: Pod
apiVersion: v1
namespace: ''
name: pod-with-default-sa
rules:
- name: prevent-mounting-default-serviceaccount
type: Validation
message: "Validation error: Prevent mounting of default service account; Validation rule prevent-mounting-default-serviceaccount failed at path /spec/serviceAccountName/"
success: false