@@ -24,19 +24,19 @@ locals {
2424 var. gitlab_agent_grant_user_access_to_root_namespace != null ? var. gitlab_agent_grant_user_access_to_root_namespace : true
2525 )
2626
27- # Determina il parent group del progetto
27+ # Determine the parent group of the project
2828 project_path_parts = split (" /" , var. gitlab_project_path_with_namespace )
2929 parent_group_path = length (local. project_path_parts ) > 1 ? join (" /" , slice (local. project_path_parts , 0 , length (local. project_path_parts ) - 1 )) : local. project_root_namespace
3030
31- # Determina se siamo in modalità auto-parent
31+ # Determine if we are in auto-parent mode
3232 auto_detect_parent = ! local. operate_at_root_group_level_computed && length (concat (var. groups_enabled , var. projects_enabled )) == 0
3333
34- # Lista finale di gruppi da abilitare
34+ # Final list of groups to enable
3535 groups_to_enable = local. operate_at_root_group_level_computed ? [local . project_root_namespace ] : (
3636 local. auto_detect_parent ? [local . parent_group_path ] : var. groups_enabled
3737 )
3838
39- # Lista finale di progetti da abilitare
39+ # Final list of projects to enable
4040 projects_to_enable = local. operate_at_root_group_level_computed ? [] : (
4141 local. auto_detect_parent ? [] : var. projects_enabled
4242 )
@@ -80,19 +80,19 @@ data "gitlab_group" "root_namespace" {
8080 full_path = local. project_root_namespace
8181}
8282
83- # Data source per parent group quando auto-detect
83+ # Parent group data source parent group if auto-detect
8484data "gitlab_group" "parent_group" {
8585 count = local. auto_detect_parent ? 1 : 0
8686 full_path = local. parent_group_path
8787}
8888
89- # Data source per i gruppi specificati
89+ # Data source for the specified groups
9090data "gitlab_group" "enabled_groups" {
9191 for_each = ! local. operate_at_root_group_level_computed && ! local. auto_detect_parent ? toset (var. groups_enabled ) : toset ([])
9292 full_path = each. value
9393}
9494
95- # Data source per i progetti specificati
95+ # Data source for the specified projects
9696data "gitlab_project" "enabled_projects" {
9797 for_each = ! local. operate_at_root_group_level_computed && ! local. auto_detect_parent ? toset (var. projects_enabled ) : toset ([])
9898 path_with_namespace = each. value
0 commit comments