-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: unify ElasticSearch and OpenSearch configuration
Changes: - set the same cluster and service name - unify tutor plugin configuration variables
- Loading branch information
Showing
12 changed files
with
169 additions
and
171 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
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
12 changes: 12 additions & 0 deletions
12
tutor-contrib-harmony-plugin/tutor_k8s_harmony_plugin/harmony_search/elasticsearch.py
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from .base import BaseSearchAPI | ||
|
||
|
||
class ElasticSearchAPI(BaseSearchAPI): | ||
""" | ||
Helper class to interact with the ElasticSearch | ||
API on the deployed cluster. | ||
""" | ||
|
||
def __init__(self, namespace): | ||
super().__init__(namespace) | ||
self._curl_base = ["curl", "--insecure", "-u", "elastic:${ELASTIC_PASSWORD}"] |
13 changes: 13 additions & 0 deletions
13
tutor-contrib-harmony-plugin/tutor_k8s_harmony_plugin/harmony_search/opensearch.py
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from .base import BaseSearchAPI | ||
|
||
|
||
class OpenSearchAPI(BaseSearchAPI): | ||
""" | ||
Helper class to interact with the OpenSearch | ||
API on the deployed cluster. | ||
""" | ||
|
||
def __init__(self, namespace): | ||
super().__init__(namespace) | ||
# TODO: Make this configurable | ||
self._curl_base = ["curl", "--insecure", "-u", "harmony:admin"] |
Oops, something went wrong.