Skip to content

jamf/kyverno-test-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Kyverno Test Util

A repository for python script that's meant to prepare test file for kyverno cli.

The problem

Kyverno CLI delivers test command which allows users to perform policy validations against k8s resources.
What it lacks is an ability to validate all resources from folder A against policies defined in folder B.

The solution

This script allows users to simply run

python kyverno-test-util.py <absolute_path_to_folder_with_k8s_resource_manifests> <absolute_path_to_file_with_policies>

Above command will produce kyverno-test.yaml file, which can then be used as an input to kyverno test command:

kyverno test ./kyverno-test.yaml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages