Add toggle to enable prune of stale runners
What does this MR do and why?
This change adds a toggle in the group settings to enable pruning of stale group runners. This toggle is behind a feature flag.
Related to #342605 (closed)
Screenshots or screen recordings
A new setting is added for GitLab Ultimate users:
Enabling the setting has a warning:
How to set up and validate locally
- Ensure your group or instance have a GitLab Ultimate license.
- Enable the feature flag
stale_runner_cleanup_for_namespace_development
. - Visit group settings for any group you own e.g. http://gdk.test:3000/groups/h5bp/-/settings/ci_cd
- Select the Runners section.
- Enable/disable the toggle to "Enable stale runner cleanup"
- Confirm your selection with "Yes, start deleting stale runners"
- Runners should be removed over time
- See more in-depth instructions of how the runners are removed, see: !86477 (merged)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Miguel Rincon