mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
- Change in namespace for test-generate example - Change cloneResource to cloneSourceResource - Add support for namespaced Policy and fix log messages - Add test-generate in Makefile and an example of namespaced Policy - Fix namespaced policy issue and add comments - Refactor according to new generate controller - Add json tag to GeneratedResource field of RuleResponse struct Signed-off-by: Shubham Nazare <shubham4443@gmail.com> Co-authored-by: Prateek Pandey <prateek.pandey@nirmata.com> Co-authored-by: Vyankatesh Kudtarkar <vyankateshkd@gmail.com>
12 lines
No EOL
258 B
YAML
12 lines
No EOL
258 B
YAML
name: deny-all-traffic
|
|
policies:
|
|
- policy.yaml
|
|
resources:
|
|
- resource.yaml
|
|
results:
|
|
- policy: add-networkpolicy
|
|
rule: default-deny
|
|
resource: hello-world-namespace
|
|
generatedResource: generatedResource.yaml
|
|
kind: Namespace
|
|
result: pass |