Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Refactor how the kayenta object mapper is being configured to allow overriding from kayenta plugins #1011

Conversation

ovidiupopa07
Copy link
Contributor

@ovidiupopa07 ovidiupopa07 commented Dec 7, 2023

Currently if you define a new subtype locator in a plugin it is not possible to be loaded by the configurer because different classloaders are used. This refactoring will give the flexibility of customizing the ObjectMapperSubtypeConfigurer from the plugin system

  • ObjectMapperSubtypeConfigurer objectMapperSubtypeConfigurer is defined as a bean
  • there's no need to autowire the mapper to configure but instead configure it when creating the kayentaObjectMapper bean

This will allow us to add more metrics providers (via the plugin framework)

…to allow overriding from kayenta plugins

- ObjectMapperSubtypeConfigurer objectMapperSubtypeConfigurer is defined as a bean
- there's no need to autowire the mapper to configure but instead configure it when creating the kayentaObjectMapper bean
Copy link

@kkotula kkotula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@ovidiupopa07 ovidiupopa07 marked this pull request as ready for review December 7, 2023 18:56
@dogonthehorizon dogonthehorizon added the ready to merge Reviewed and ready for merge label Dec 8, 2023
@mergify mergify bot added the auto merged label Dec 8, 2023
@mergify mergify bot merged commit bac3719 into spinnaker:master Dec 8, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants