-
Notifications
You must be signed in to change notification settings - Fork 9
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
[DPE-3573][DPE-3579] Fix #164 - check _cluster/settings instead of opensearch.yml for plugins #177
Conversation
It will be hard to track any side effects introduced by these changes, let's split this PR in 4 separate PRs please:
I have a couple of questions:
|
To clarify: start logic for me is all the logic directly involved in getting the service up and running for the very first time. Regarding the questions:
There are some reasons:
For some reasons: #154 - I find the start logic in the charm has a lot going on. It needs information that only comes later, like certificates. That means we have some "mixing", where certain events of the lifecycle have to happen even before the actual start. That means: we need a way to defer. Regarding your points:
|
060072f
to
2f9fed7
Compare
The backup error in: https://github.com/canonical/opensearch-operator/actions/runs/7951972946/job/21713806527, is a status cleanup addressed in #186 |
22cb1a8
to
c938281
Compare
670fd98
to
9949059
Compare
The
|
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.
Thanks Pedro - I left some questions and comments
7114625
to
2f7dd8d
Compare
27d7db4
to
5331546
Compare
a21604b
to
cfdc018
Compare
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 extendpydantic.BaseModel
. It ensures that configuration is translated toDict[str, str]
, in special the boolean value, that must have a format of:true
orfalse
.Also closes DPE-3579: move the plugin settings status to use the charm's
status.{set,clear}
APIs.