-
Notifications
You must be signed in to change notification settings - Fork 10
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 config source to not keep in memory all the properties #218
Conversation
6ad7543
to
5c0fbee
Compare
src/main/java/com/redhat/cloud/common/clowder/configsource/utils/CertUtils.java
Outdated
Show resolved
Hide resolved
src/main/java/com/redhat/cloud/common/clowder/configsource/ClowderConfigSource.java
Outdated
Show resolved
Hide resolved
...a/com/redhat/cloud/common/clowder/configsource/handlers/KafkaSaslClowderPropertyHandler.java
Outdated
Show resolved
Hide resolved
...a/com/redhat/cloud/common/clowder/configsource/handlers/KafkaSaslClowderPropertyHandler.java
Outdated
Show resolved
Hide resolved
...edhat/cloud/common/clowder/configsource/handlers/PrivateEndpointsClowderPropertyHandler.java
Outdated
Show resolved
Hide resolved
We'll need an additional handler for the quarkus-unleash configuration. |
src/main/java/com/redhat/cloud/common/clowder/configsource/ClowderConfigSource.java
Show resolved
Hide resolved
src/main/java/com/redhat/cloud/common/clowder/configsource/ClowderConfigSource.java
Show resolved
Hide resolved
src/test/java/com/redhat/cloud/common/clowder/configsource/ConfigSourceTest.java
Outdated
Show resolved
Hide resolved
@Sgitario ☝️ Sorry for the delay before this was reviewed. |
5c0fbee
to
ce57b57
Compare
...m/redhat/cloud/common/clowder/configsource/handlers/KafkaSecurityClowderPropertyHandler.java
Outdated
Show resolved
Hide resolved
src/test/java/com/redhat/cloud/common/clowder/configsource/ConfigSourceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/redhat/cloud/common/clowder/configsource/ConfigSourceTest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/redhat/cloud/common/clowder/configsource/ClowderConfigSourceFactory.java
Outdated
Show resolved
Hide resolved
…wderConfigSourceFactory.java Co-authored-by: Gwenneg Lepage <gwenneg@users.noreply.github.com>
…figSourceTest.java Co-authored-by: Gwenneg Lepage <gwenneg@users.noreply.github.com>
1887435
to
569481e
Compare
@gwenneg PR updated with your latest comments. |
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.
LGTM
I forgot that It'd be easier if this project was released like the Quarkiverse extensions! |
ups, sorry. Will follow this pattern for the next time! |
I just released 2.6.0. It'll be available in Maven Central soon-ish. |
Before these changes, the Clowder config source was keeping in memory all the properties from all the sources in the existingValues property. Apart from this, the clowder config source was used even when the clowder file is not set.
This pull request addresses both issues by:
This interface implements a decorator pattern, so the config source will only keep the properties in memory if and only if there is any handler that handles it.
Relates to SWATCH-2037