1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/test/policy/generate/generate.yaml
Shivkumar Dudhani 8c1d79ab28
linter suggestions (#655)
* cleanup phase 1

* linter fixes phase 2
2020-01-24 12:05:53 -08:00

58 lines
No EOL
1.6 KiB
YAML

# 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."
- name: "Basic clone config generator for all namespaces"
type: Generation
messages:
- "Rule Basic clone config generator for all namespaces: Generation successfully."
---
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."
- name: "zk-kafka-address"
type: Generation
messages:
- "Rule zk-kafka-address: Generation successfully."
---
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."