Skip to content

Make ObjectMapper in CustomResourceCache configurable #384

Closed
@i8r

Description

@i8r

The CustomResourceCache creates an internal ObjectMapper in order to clone objects. This causes problems if the default object mapper is not able to (de)serialize the sub-type of CustomResource. This happens for instance if the type has a field of Java 8 date/time types since com.fasterxml.jackson.datatype.jsr310.JavaTimeModule won't be loaded even if it is on the classpath.

I suggest to let the user of the library provide the instance of the ObjectMapper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions