generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DPE-3573][DPE-3579] Fix #164 - check _cluster/settings instead of op…
…ensearch.yml for plugins (#177) Adds a GET /_cluster/settings, which returns the configuration of the cluster at the moment, including defaults. This way, plugins can check if they should add their configs and request a restart during the start cycle of the charm. The `_is_enabled` is also extended to use the cluster settings instead of checking the configuration files directly. Moved `OpenSearchPluginConfig` to extend `pydantic.BaseModel`. It ensures that configuration is translated to `Dict[str, str]`, in special the boolean value, that must have a format of: `true` or `false`. Also closes [DPE-3579](https://warthogs.atlassian.net/browse/DPE-3579): move the plugin settings status to use the charm's `status.{set,clear}` APIs.
- Loading branch information
1 parent
d31ba2d
commit f1d9d37
Showing
12 changed files
with
261 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.