Persist field to support shared namespace in agent configuration
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Stores the provided shared_namespace in the agent configuration when it is provided and also saves in the database. If the value is not provided, it is not set.
References
Screenshots or screen recordings
N/A - it's a back-end update to persist in the database.
How to set up and validate locally
- Update the agent configuration to not explicitly specify the
shared_namespace
and verify the record in the database and has theshared_namespace
value as''
.remote_development: enabled: true dns_zone: workspaces.cocreate.test
- Update the agent configuration to explicitly specify the
shared_namespace
and verify the record in the database and has theshared_namespace
value correctly set.remote_development: enabled: true dns_zone: workspaces.cocreate.test shared_namespace: "test"
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by rohit k