-
Notifications
You must be signed in to change notification settings - Fork 17
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
Operator Runtime Config Rotating Store Verticle #1405
base: main
Are you sure you want to change the base?
Operator Runtime Config Rotating Store Verticle #1405
Conversation
- Retrieves operator remote config from core endpoint
- updated local and integ config - moved runtime-config-defaults.json to runtime_config/metadata.json in com.uid2.core - moved createStoreVerticles method to complete before initialiseConfigService
…Rotating runtime config store
ConfigRetriever dynamicConfigRetriever = ConfigRetrieverFactory.create( | ||
vertx, | ||
new JsonObject() | ||
.put("type", "event-bus") | ||
.put("config", new JsonObject() | ||
.put("address", OperatorRuntimeConfigEventBus)) | ||
); | ||
|
||
this.createStoreVerticles() | ||
.compose(v -> this.initialiseConfigService(dynamicConfigRetriever)) | ||
.compose(configService -> { |
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.
Reason for this change ->createStoreVerticles method needs to be before initialiseConfigService so that the runtime config is retrieved from core and published to event-bus. dynamicConfigRetriever needs to listen to runtime config address on event bus before publishing config otherwise the message will be discarded.
runtime_config_path
andruntime_config_refresh_ms