1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/cmd/cli/kubectl-kyverno/processor
Ammar Yasser d100202d22
Print generate output cli (#11634)
* refactor: Configure the policy processor to print generated resources

Refactor printMutatedOutput to printOutput which prints mutate or generate resources to a file or standard output
Introduce processGenerateResponse which extracts generated resources from the policy response and passes them to printOutput

Signed-off-by: aerosouund <aerosound161@gmail.com>

* chore: Update flag description to specify mutated and generated resources

Signed-off-by: aerosouund <aerosound161@gmail.com>

* chore: Run codegen

Signed-off-by: aerosouund <aerosound161@gmail.com>

---------

Signed-off-by: aerosouund <aerosound161@gmail.com>
2024-11-27 08:33:05 +00:00
..
exceptions.go chore: use v2 clients for policy exceptions (#10530) 2024-06-24 16:36:55 +00:00
generate.go refactor: introduce autogen interface (#11418) 2024-10-16 15:24:37 +02:00
policy_processor.go Print generate output cli (#11634) 2024-11-27 08:33:05 +00:00
policy_processor_test.go fix: remove unused parameters (#10327) 2024-05-29 13:40:41 +00:00
result.go refactor: introduce autogen interface (#11418) 2024-10-16 15:24:37 +02:00
utils.go refactor: mutate checks (#9255) 2023-12-22 15:07:17 +02:00
vap_processor.go chore: remove v1alpha1 of VAPs and use v1beta1 (#10955) 2024-08-29 15:31:25 +00:00