Skip to content

feat: Add support for shared elasticsearch for forum

Kshitij Sobti requested to merge kshitij/incorporate-tutor-forum-changes into main

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:

  1. 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.
  2. You can do this by creating two directories, set TUTOR_ROOT to this directory and create a virtualenv for each. In each directory run tutor config save to generate a basic config, and then add the forum plugin, the grove plugin, and settings liek ELASTICSEARCH_HTTP_AUTH and ELASTICSEARCH_INDEX_PREFIX to test the changes here.
  3. Build the tutor config for both.
  4. Perform a diff and examine the changes.
  5. Go to the env directory for both and turn kubectl kustomize -o output.yml and then compare the output files.
  6. 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.

Merge request reports