Add watermark enum to zoekt indices
What does this MR do and why?
Add watermark enum to zoekt indices. This will allow us to keep the original state enum for index lifecycle and use watemark_level to enable/disable indexing tasks for an index.
We track a watermark_level enum instead of a simple integer field because it helps us track if/when we have handled (ie: dispatch an event and triggered a worker) the situation when a zoekt index has too much storage.
This is related to !166222 (merged) and #494261 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.