Add GitLab Application Settings
Update Resource
Looking to add some missing settings that are available in the GitLab API for Application Settings
- prevent_merge_requests_author_approval
- prevent_merge_requests_committers_approval
- throttle_authenticated_git_lfs_enabled
- throttle_authenticated_git_lfs_period_in_seconds
- throttle_authenticated_git_lfs_requests_per_period
resource "gitlab_application_settings" "this" {
prevent_merge_requests_author_approval = true
prevent_merge_requests_committers_approval = true
throttle_authenticated_git_lfs_enabled = true
throttle_authenticated_git_lfs_period_in_seconds = 60
throttle_authenticated_git_lfs_requests_per_period = 1000
}
Related GitLab APIs
API documentation:
- https://docs.gitlab.com/api/settings/
- https://docs.gitlab.com/development/cells/application_settings_analysis/#individual-columns
Additional Details
- GitLab REST API resources available (read for data sources, CRUD for resources)
- client-go supports the related GitLab API already
- I'd like to contribute it myself
Edited by nick bodicky