generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update data_interfaces lib to include opensearch provider (#30)
## Proposal Updates data_interfaces lib to include objects and events to manage the opensearch provider lib, as well as TLS. ## Context - While the changes in the data_interfaces library aren't unique to this repo, I've chosen to add them here first so we can ensure they're fit for purpose, and then we can add the finished library to the data-integrator repo. - The data-integrator changes are duplicated across the opensearch and integration test application charm lib/ directories. This should be an exact duplication. - rollingops lib has been updated to update locks on leader_elected. If the leader is replaced during a rolling op, the new leader never receives the process_locks event, so it never runs the op. A PR has been opened for this [here](canonical/charm-rolling-ops#1), but again, I'm testing my changes here before merging. - This PR is *definitely* getting a merge commit into main so I don't nuke our commit history ## Changelog - Updated data_interfaces lib to include OpenSearchProvider and OpenSearchRequirer objects, and events associated with opensearch. - data_interfaces lib has been updated to the correct ops version - Added TLS to opensearch provider relation - Added data_interfaces OpenSearchProvider to provider relation - Updated endpoint update method to guarantee we have the correct number of endpoints in the databag when scaling - added data_interfaces OpenSearchRequirer to requirer application test charm - Deferred starting opensearch if the init script fails to connect - Possible fix for a bug where update-status fails if we remove the tls-operator - Fixed some typos and formatting - Updated rollingops lib to update locks on leader_elected - Updated integration tests ## Testing - Added unit tests - Added more extensive integration tests, which test the following: - opensearch API access while scaling - Checks that index data persists across relations
- Loading branch information
Showing
24 changed files
with
806 additions
and
182 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ __pycache__/ | |
.vscode | ||
|
||
*.tar.gz | ||
*.tar.xz | ||
cloudinit-userdata.yaml | ||
/.pytest_cache/ |
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.