Enhance Code Quality
This MR aims to improve code quality, it includes refactoring and restructuring and code formatting. In particular, it includes:
- Copying the examples folder to the Docker images, this makes it possible to use the examples as default
execution
andbenchmark
even in standalone mode - Renaming
TheodoliteYamlExecutor
toTheodoliteStandalone
- Replace
KafkaLagExporterRemover
withResourceByLabelHandler
. This handler encapsulates all requests to Kubernetes resources via labels - Replace fabric8
DefaultKubernetesClient
withNamespacedKubernetesClient
, this way we can simplify some calls (inNamespace() can be removed) - Extract the code for adding an additional label patcher from
TheodoliteController
into a new classConfigOverrideModifier
. Add test for thisConfigOverrideModifier
- Extract the State Comperator from
TheodoliteController
into a new classExecutionComparator
- Add
ImagePatcher
to thePatcherFactory
- Some minor code changes, like changing the type of exceptions, code formatting or cleanup, updating KDoc
Closes #209 (closed)
Edited by Sören Henning