1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-01-20 18:52:16 +00:00
kyverno/test/policy/generate/generate.yaml

58 lines
1.6 KiB
YAML
Raw Normal View History

2019-07-01 12:16:12 -07:00
# file path relative to project root
input:
policy: examples/generate/policy_basic.yaml
resource: examples/generate/namespace.yaml
load_resources:
- examples/generate/configMap_default.yaml
expected:
passes: true
generation:
resources:
- test/output/cm_default_config.yaml
- test/output/sc_mongo_cred.yaml
rules:
- name: "Basic config generator for all namespaces"
type: Generation
messages:
- "Rule Basic config generator for all namespaces: Generation successfully."
2019-07-01 12:16:12 -07:00
- name: "Basic clone config generator for all namespaces"
type: Generation
messages:
- "Rule Basic clone config generator for all namespaces: Generation successfully."
2019-07-01 12:16:12 -07:00
---
input:
policy: examples/generate/policy_generate.yaml
resource: examples/generate/namespace.yaml
load_resources:
- examples/generate/configMap.yaml
expected:
passes: true
generation:
resources:
- test/output/cm_copied_cm.yaml
- test/output/cm_zk-kafka-address.yaml
rules:
- name: "copy-comfigmap"
type: Generation
messages:
- "Rule copy-comfigmap: Generation successfully."
2019-07-01 12:16:12 -07:00
- name: "zk-kafka-address"
type: Generation
messages:
- "Rule zk-kafka-address: Generation successfully."
2019-07-01 12:16:12 -07:00
---
input:
policy: examples/generate/policy_networkPolicy.yaml
resource: examples/generate/namespace.yaml
expected:
passes: true
generation:
resources:
- test/output/np_deny-all-traffic.yaml
rules:
- name: deny-all-traffic
type: Generation
messages:
- "Rule deny-all-traffic: Generation successfully."