Add gitlab_project_integration_google_chat resource
What does this MR do?
Adds a new Terraform resource gitlab_project_integration_google_chat to manage the native Google Chat (Hangouts Chat) project integration via the GitLab API.
#6738 (closed) Feature request to support Google Chat project integration as a Terraform resource.
Why is it needed?
Although the GitLab API supports the Google Chat integration endpoint (/projects/:id/integrations/hangouts-chat), there is currently no corresponding Terraform resource. This prevents users from managing this integration using infrastructure as code.
What’s included?
-
resource_gitlab_project_integration_google_chat.go
Full CRUD implementation using:SetProjectGoogleChatSettingsGetProjectGoogleChatSettingsDisableProjectGoogleChat
-
resource_gitlab_project_integration_google_chat_test.go
Acceptance tests covering create, update, and import scenarios
Notes
- The
webhookattribute is marked as sensitive and excluded fromImportStateVerify, since the API does not return it after creation. - Users must reconfigure the
webhookand runterraform applyafter importing. - Changing the
projectattribute forces resource recreation. - This MR depends on upstream support added in
gitlab-org/api/client-go!2222.
Edited by Mohamed Mongy