Another kubernetes testing tools
It takes inspiration from ruby https://github.com/vcr/vcr applied to kubernetes resources for testing purposes.
- take a yaml snapshot of the defined (from global configuration
kassette.yamland the ones fromexamplesfolder) kubernetes resource cluster and save it:bin/kassette record - compare the recorded yaml snapshot with the current kubernetes cluster state:
bin/kassette diff - you can also do mass modification of all the resources in the snapshot with
bin/kassette modifycommand
For usage details, see: bin/kassette [COMMAND] --help
This tools require the kubectl cli, it will use exclusively the get subcommand to retrieve the kubernetes resources.
Tested with python 3.12, but should work with python 3.10+.
Requires pipenv.
pipenv sync
pipenv run bin/test
pipenv run bin/lint- use CI to run tests and linting
- publish to pypi