Add auto_stop_setting to environment resource
-
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.
This MR is primarily to add auto_stop_setting to the gitlab_project_environment resource. I also noticed that description was missing and added that as well.
One of the things I discovered in testing was that to stop an environment with an action, it must be force-stopped. That wasn't too difficult to add, but the WaitForStateContext configuration has a Refresh that attempts to perform a delete again to check on status. Passing in a force here led to state machine errors, so the force option is only passed on the initial call. I do wonder if that refresh really should be a Get.. instead of trying to perform another delete.
Closes #6413 (closed)
Edited by 🤖 GitLab Bot 🤖