browsertrix/backend/btrixcloud/operator
Tessa Walsh 9140dd75bc
Add and enforce readOnly field in Organization (#1886)
Fixes https://github.com/webrecorder/browsertrix/issues/1883
Backend work for https://github.com/webrecorder/browsertrix/issues/1876

- If readOnly is set true, disallow crawls and QA analysis runs
- If readOnly is set to true, skip scheduled crawls
- Add endpoint to set `readOnly` with optional `readOnlyReason` (which
is automatically set back to an empty string when `readOnly` is being
set to false), which can be displayed in banner
- Operator: ensures cronjobs that are skipped due to internal logic (eg. readonly mode) simply succeed right away and do not leave a k8s job dangling.

---------
Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2024-06-25 19:30:53 -07:00
..
__init__.py
baseoperator.py include workflow config in QA runs + different browser instances for QA (#1829) 2024-05-29 13:32:25 -07:00
bgjobs.py
crawls.py ensure QA configmap is updated for long running QA runs: (#1865) 2024-06-12 10:51:35 -07:00
cronjobs.py Add and enforce readOnly field in Organization (#1886) 2024-06-25 19:30:53 -07:00
models.py operator state fixes (follow up fomr #1639) (#1640) 2024-03-29 15:12:16 -07:00
profiles.py