diff --git a/nullplatform/code_repository/main.tf b/nullplatform/code_repository/main.tf index c797657b..6edabb54 100644 --- a/nullplatform/code_repository/main.tf +++ b/nullplatform/code_repository/main.tf @@ -9,13 +9,9 @@ resource "nullplatform_provider_config" "gitlab" { "group_path" : var.gitlab_group_path, "access_token" : var.gitlab_access_token, "installation_url" : var.gitlab_installation_url - }, - "access" : var.gitlab_collaborators_config + } } ) - lifecycle { - ignore_changes = [attributes] - } } /* If the git_provider variable has the value github, create this resource */ @@ -31,9 +27,6 @@ resource "nullplatform_provider_config" "github" { }, } ) - lifecycle { - ignore_changes = [attributes] - } } /* If the git_provider variable has the value azure, create this resource */ @@ -50,7 +43,4 @@ resource "nullplatform_provider_config" "azure" { }, } ) - lifecycle { - ignore_changes = [attributes] - } } diff --git a/nullplatform/code_repository/variables.tf b/nullplatform/code_repository/variables.tf index 0b1be05b..4d9a185d 100644 --- a/nullplatform/code_repository/variables.tf +++ b/nullplatform/code_repository/variables.tf @@ -39,22 +39,6 @@ variable "gitlab_installation_url" { } } -variable "gitlab_collaborators_config" { - description = "Configuration for repository collaborators, including their roles and permissions." - type = object({ - collaborators = list(object({ - id = string - role = string - type = string - })) - }) - default = null - validation { - condition = var.git_provider != "gitlab" || var.gitlab_collaborators_config != null - error_message = "collaborators_config is required when git_provider is 'gitlab'." - } -} - variable "gitlab_repository_prefix" { description = "Prefix to use for GitLab repository names." type = string