A few days back I stumbled over this github action ANNOUNCEMENT: mkp-builder - Standalone MKP Builder with GitHub Actions
While it might be a sufficent solution for the most, I wanted it a bit more independent.
The Idea
checkmk plugins are mostly written in python, why not develop a plugin a bit more modernized python?
So I analyzed the structure of my own mkp packages, what checkmk expects as path structure, what the action mentioned above want as a project strucutre and what a usual python library has as structure.
I finally settled on the manifest file, since it is the base checkmk itself builds their mkp packages.
This provides the option to programm the different plugin object as seperate python packages without the need to copy a huge empty folder structure.
This way internal libraries could be provided.
So why should I care for seperate modules?
Currently the cmk package which is used in all components of a plugin is only available with a test-site. This makes independend testing of complex plugin impossible.
Solution: The complex logic as seperate modules without cmk dependency.
Further, I wanted to make it plattform independent, so my implementation of this topic is published via pypi and can be added as development dependency in any project.
The Implementation
Currently, the mkp-forge only provides packaging mkp packages based on manifest file which is validated similiar to checkmk-mkp-tool. But additional validations and templating are planned.
I am open to ideas about ci testing approaches for mkp packages.
Thanks for reading my introduction of mkp-forge.