Avoid GitlabSubscription generation outside SaaS
What does this MR do and why?
GitlabSubscription
is only used under SaaS context, but is still generated outside SaaS environment. This MR fixes this.
How to set up and validate locally
- Ensure you are under self managed instance
- Observe
GitlabSubscription
count first.GitlabSubscription.count
- Create a new group
- Observe
GitlabSubscription
count has not changedGitlabSubscription.count
- Run the following and it should return "default" instead of "free".
Namespace.last.actual_plan
- Check that no new records has been generated.
GitlabSubscription.count
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.
Related to #214434 (closed)
Edited by Mark Chao