feat: Add support for shared elasticsearch for forum
Description
OpenCraft was keeping a custom branch of the tutor-forum plugin that included patches to the kubernetes config. These customisations in our fork can also be applied as kustomize patches, and that is what this PR does, moving all those customisations to this plugin.
Supporting information
Testing instructions
Steps to test the changes:
- Set up two equivalent tutor environments, one that has grove=16, and the custom fork of tutor forum installed, and another that has this version of grove and the upstream version of tutor forum installed.
- You can do this by creating two directories, set
TUTOR_ROOT
to this directory and create a virtualenv for each. In each directory runtutor config save
to generate a basic config, and then add the forum plugin, the grove plugin, and settings liekELASTICSEARCH_HTTP_AUTH
andELASTICSEARCH_INDEX_PREFIX
to test the changes here. - Build the tutor config for both.
- Perform a diff and examine the changes.
- Go to the
env
directory for both and turnkubectl kustomize -o output.yml
and then compare the output files. - The output files should represent the same kubernetes state.
Dependencies
N.A.
Screenshots
NA
Checklist
If any of the items below is not applicable, do not remove them, but put a check in it.
-
Git commit history is clean -
Git commits are following conventional-commit practices -
Unit tests are added/updated -
Documentation is added/updated
Additional context
Add any other context about the merge request here.