-
Notifications
You must be signed in to change notification settings - Fork 219
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
Conversation
Addressing #384 |
...framework-core/src/main/java/io/javaoperatorsdk/operator/processing/CustomResourceCache.java
Outdated
Show resolved
Hide resolved
9edbb08
to
a172883
Compare
There was a problem hiding this 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.
...framework-core/src/main/java/io/javaoperatorsdk/operator/processing/CustomResourceCache.java
Show resolved
Hide resolved
...framework-core/src/main/java/io/javaoperatorsdk/operator/processing/CustomResourceCache.java
Outdated
Show resolved
Hide resolved
@@ -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); |
There was a problem hiding this comment.
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.
Comments addressed and commit history cleaned up. |
...ework-core/src/test/java/io/javaoperatorsdk/operator/processing/DefaultEventHandlerTest.java
Outdated
Show resolved
Hide resolved
...ava/io/javaoperatorsdk/operator/processing/event/internal/CustomResourceEventSourceTest.java
Outdated
Show resolved
Hide resolved
...ava/io/javaoperatorsdk/operator/processing/event/internal/CustomResourceEventSourceTest.java
Outdated
Show resolved
Hide resolved
...ework-core/src/test/java/io/javaoperatorsdk/operator/processing/DefaultEventHandlerTest.java
Outdated
Show resolved
Hide resolved
Can you please fix the typo in the commit message? Otherwise, this looks good to me. |
Of course. I also addressed the other comments. |
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
Oh no, you are right. Sorry for messing up the commit message multiple times 😄 |
Thank you! |
Uh oh!
There was an error while loading. Please reload this page.