You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #8 from sparkfabrik/feat/3414_allow_multiple_projects_groups
feat: change 'gitlab_group_id' and 'gitlab_project_id' variables to 'gitlab_group_ids' and 'gitlab_project_ids' allowing for multiple GitLab groups or projects configuration
Copy file name to clipboardExpand all lines: CHANGELOG.md
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,50 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
9
9
## [Unreleased]
10
10
11
+
## [0.5.0] - 2025-05-30
12
+
13
+
[Compare with previous version](https://github.com/sparkfabrik/terraform-google-gcp-gitlab-wif/compare/0.4.0...0.5.0)
14
+
15
+
### :warning: Breaking change
16
+
17
+
The variables `gitlab_group_id` and `gitlab_project_id` have been renamed to `gitlab_group_ids` and `gitlab_project_ids` and the type has been changed from `string` to `list(string)`. This allows for multiple group and project IDs to be specified.
18
+
19
+
You can update your configuration simply by changing the variable names and wrapping the existing values in a list, like this:
- You can add GitLab groups and projects together with the same module, allowing for more flexibility in managing multiple GitLab groups and projects usint the same OIDC provider configuration.
50
+
51
+
### Changed
52
+
53
+
- Change the variables `gitlab_group_id` and `gitlab_project_id` to `gitlab_group_ids` and `gitlab_project_ids`, allowing for multiple group and project IDs to be specified.
54
+
11
55
## [0.4.0] - 2025-05-29
12
56
13
57
[Compare with previous version](https://github.com/sparkfabrik/terraform-google-gcp-gitlab-wif/compare/0.3.1...0.4.0)
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,9 @@ You can refer to the official [GitLab documentation](https://docs.gitlab.com/ci/
34
34
| <aname="input_gitlab_gcp_wif_project_id_variable_name"></a> [gitlab\_gcp\_wif\_project\_id\_variable\_name](#input\_gitlab\_gcp\_wif\_project\_id\_variable\_name)| The name of the GitLab variable to store the GCP project ID for WIF. |`string`|`"GCP_WIF_PROJECT_ID"`| no |
35
35
| <aname="input_gitlab_gcp_wif_provider_variable_name"></a> [gitlab\_gcp\_wif\_provider\_variable\_name](#input\_gitlab\_gcp\_wif\_provider\_variable\_name)| The name of the GitLab variable to store the GCP WIF provider name. |`string`|`"GCP_WIF_PROVIDER"`| no |
36
36
| <aname="input_gitlab_gcp_wif_service_account_email_variable_name"></a> [gitlab\_gcp\_wif\_service\_account\_email\_variable\_name](#input\_gitlab\_gcp\_wif\_service\_account\_email\_variable\_name)| The name of the GitLab variable to store the GCP WIF service account email. |`string`|`"GCP_WIF_SERVICE_ACCOUNT_EMAIL"`| no |
37
-
| <aname="input_gitlab_group_id"></a> [gitlab\_group\_id](#input\_gitlab\_group\_id)| The GitLab group ID to allow access from. Use this for group-level access. |`number`|`0`| no |
37
+
| <aname="input_gitlab_group_ids"></a> [gitlab\_group\_ids](#input\_gitlab\_group\_ids)| The GitLab group IDs to allow access from. Use this for group-level access. |`list(number)`|`[]`| no |
38
38
| <aname="input_gitlab_instance_url"></a> [gitlab\_instance\_url](#input\_gitlab\_instance\_url)| The URL of your GitLab instance. |`string`|`"https://gitlab.com"`| no |
39
-
| <aname="input_gitlab_project_id"></a> [gitlab\_project\_id](#input\_gitlab\_project\_id)| The GitLab project ID to allow access from. Use this for project-level access. |`number`|`0`| no |
39
+
| <aname="input_gitlab_project_ids"></a> [gitlab\_project\_ids](#input\_gitlab\_project\_ids)| The GitLab project IDs to allow access from. Use this for project-level access. |`list(number)`|`[]`| no |
40
40
| <aname="input_gitlab_variables_additional"></a> [gitlab\_variables\_additional](#input\_gitlab\_variables\_additional)| Additional GitLab variables to create. This should be a map where the key is the variable name and the value is an object containing the variable properties. This allows you to define custom variables for project or group where the module is applied. | <pre>map(object({<br/> value = string<br/> protected = optional(bool, false)<br/> masked = optional(bool, false)<br/> description = optional(string, "Managed by {{MANAGER_NAME}}.")<br/> }))</pre> |`{}`| no |
41
41
| <aname="input_gitlab_variables_description"></a> [gitlab\_variables\_description](#input\_gitlab\_variables\_description)| The description for the GitLab variables created by this module. You can use `{{MANAGER_NAME}}` to include the name of the 'manager' defined in `gitlab_variables_description_manager_name`. |`string`|`"Managed by {{MANAGER_NAME}}."`| no |
42
42
| <aname="input_gitlab_variables_description_manager_name"></a> [gitlab\_variables\_description\_manager\_name](#input\_gitlab\_variables\_description\_manager\_name)| The name of the manager to include in the GitLab variable description. |`string`|`"terraform-google-gcp-gitlab-wif module"`| no |
@@ -49,7 +49,7 @@ You can refer to the official [GitLab documentation](https://docs.gitlab.com/ci/
49
49
| Name | Description |
50
50
|------|-------------|
51
51
| <aname="output_gitlab_variables"></a> [gitlab\_variables](#output\_gitlab\_variables)| The GitLab variables created by this module. |
52
-
| <aname="output_principal_set"></a> [principal\_set](#output\_principal\_set)| The principal set string used for IAM bindings. |
52
+
| <aname="output_principal_set"></a> [principal\_set](#output\_principal\_set)| The principal sets string used for IAM bindings. |
53
53
| <aname="output_secret_created"></a> [secret\_created](#output\_secret\_created)| The names and IDs of the secrets created by this module. |
54
54
| <aname="output_secret_ids"></a> [secret\_ids](#output\_secret\_ids)| Map of original secret names to their Secret Manager secret IDs |
55
55
| <aname="output_secret_names"></a> [secret\_names](#output\_secret\_names)| Map of original secret names to their formatted names |
@@ -80,6 +80,7 @@ You can refer to the official [GitLab documentation](https://docs.gitlab.com/ci/
0 commit comments