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/limit-configmap-for-sa/kyverno-test.yaml
2022-04-26 20:00:46 +08:00

17 lines
440 B
YAML

name: limit-configmap-for-sa
policies:
- limit_configmap_for_sa.yaml
resources:
- resource.yaml
variables: variables.yaml
results:
- policy: limit-configmap-for-sa
rule: limit-configmap-for-sa-developer
resource: any-configmap-name-good
kind: ConfigMap
result: fail
- policy: limit-configmap-for-sa
rule: limit-configmap-for-sa-developer
resource: any-configmap-name-bad
kind: ConfigMap
result: skip