Skip to content

Make ObjectMapper of CustomResourceCache configurable #385

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

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

i8r
Copy link

@i8r i8r commented Mar 22, 2021

  • Optionally provide the ObjectMapper in the constructor of the Operator
  • Optionally provide the ObjectMapper in constructor of the CustomResourceCache
  • Optionally autowire a ObjectMapper in spring boot

@i8r
Copy link
Author

i8r commented Mar 22, 2021

Addressing #384

@i8r i8r force-pushed the object-mapper branch 4 times, most recently from 9edbb08 to a172883 Compare March 22, 2021 13:54
@i8r i8r marked this pull request as ready for review March 22, 2021 14:06
Copy link
Collaborator

@metacosm metacosm left a comment

Choose a reason for hiding this comment

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

Please use conventional commits (https://www.conventionalcommits.org/en/v1.0.0/) for commit messages.

@@ -49,18 +58,13 @@ public void cacheResource(CustomResource resource, Predicate<CustomResource> pre
* @return
*/
public Optional<CustomResource> getLatestResource(String uuid) {
return Optional.ofNullable(clone(resources.get(uuid)));
return Optional.ofNullable(resources.get(uuid)).map(this::clone);
Copy link
Author

Choose a reason for hiding this comment

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

Strictly speaking this is still unrelated. I'll undo it as well if you prefer.

@i8r i8r requested a review from metacosm March 23, 2021 07:23
@i8r
Copy link
Author

i8r commented Mar 23, 2021

Comments addressed and commit history cleaned up.

@metacosm
Copy link
Collaborator

Can you please fix the typo in the commit message? Otherwise, this looks good to me.

@i8r i8r changed the title Make ObjectMapper of CustomResourceCache configuarble Make ObjectMapper of CustomResourceCache configurable Mar 23, 2021
@i8r
Copy link
Author

i8r commented Mar 23, 2021

Can you please fix the typo in the commit message? Otherwise, this looks good to me.

Of course.

I also addressed the other comments.

@i8r i8r requested a review from metacosm March 23, 2021 13:41
@metacosm
Copy link
Collaborator

Sorry to be a bother but now the commit message doesn't follow the conventional commit format anymore… 😢

* Optionally provide the ObjectMapper in the constructor of the Operator
* Optionally provide the ObjectMapper in constructor of the CustomResourceCache
* Optionally autowire a ObjectMapper in spring boot
@i8r
Copy link
Author

i8r commented Mar 23, 2021

Sorry to be a bother but now the commit message doesn't follow the conventional commit format anymore… 😢

Oh no, you are right. Sorry for messing up the commit message multiple times 😄

@metacosm
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants