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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,27 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
9
9
## [Unreleased]
10
10
11
+
### Added
12
+
13
+
- New variable `operate_at_root_group_level` to simplify configuration and replace the combination of `gitlab_agent_grant_access_to_entire_root_namespace` and `gitlab_agent_create_variables_in_root_namespace`
14
+
- New variable `groups_enabled` to specify groups where the GitLab Agent should be enabled (when not operating at root group level)
15
+
- New variable `projects_enabled` to specify projects where the GitLab Agent should be enabled (when not operating at root group level)
16
+
- Auto-detection of parent group when `operate_at_root_group_level = false` and no groups/projects are specified
17
+
- Support for creating CI/CD variables in multiple groups and projects simultaneously
18
+
- Dynamic generation of agent configuration file based on enabled groups/projects using `yamlencode()`
19
+
- New outputs: `gitlab_enabled_groups`, `gitlab_enabled_projects`, `gitlab_parent_group_auto_detected`, `operate_at_root_group_level`
20
+
21
+
### Changed
22
+
23
+
- Agent configuration file is now dynamically generated based on `operate_at_root_group_level` and enabled groups/projects
24
+
- CI/CD variables can now be created in multiple targets (root group, specific groups, or specific projects) depending on configuration
25
+
- Output `gitlab_root_namespace_id` now returns `null` when not operating at root group level
26
+
27
+
### Deprecated
28
+
29
+
- Variable `gitlab_agent_grant_access_to_entire_root_namespace` - use `operate_at_root_group_level` instead
30
+
- Variable `gitlab_agent_create_variables_in_root_namespace` - behavior is now determined by `operate_at_root_group_level`
31
+
11
32
## [0.12.0] - 2025-05-19
12
33
13
34
[Compare with previous version](https://github.com/sparkfabrik/terraform-gitlab-kubernetes-gitlab-agent/compare/0.11.0...0.12.0)
Copy file name to clipboardExpand all lines: README.md
+49-1Lines changed: 49 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,60 @@ This module creates all the necessary resources to deploy a Gitlab Agent on a Ku
4
4
5
5
It uses the Gitlab provider to register the agent on the Gitlab server. The generated registration token is use to create an Helm release of the Gitlab Agent in the cluster.
6
6
7
-
If required (`gitlab_agent_grant_access_to_entire_root_namespace` configured to `true`), it also creates the necessary configuration files in the given Gitlab project, granting access to all the projects in the root namespace and subgroups.
7
+
The module supports multiple configuration modes:
8
+
9
+
-**Root Group Level** (default): The agent has access to the entire root namespace and CI/CD variables are created in the root group
10
+
-**Auto-detect Parent**: When not operating at root level and no specific groups/projects are provided, the module automatically detects the parent group of the agent project
11
+
-**Specific Groups/Projects**: Enable the agent only for specific groups or projects, with variables created in those locations
8
12
9
13
**ATTENTION**: you have to manually create the project that will host the Gitlab Agent configuration in Gitlab before running this module.
10
14
11
15
From version `0.7.0`, if you set `gitlab_project_name` the module will create Gitlab project automatically. This new behavior requires the provider to have the proper permissions to create the project in the namespace.
## RBAC configuration for the Gitlab Agent service account
14
62
15
63
This module uses the default configuration of the Gitlab Agent Helm chart. The default configuration grants to the Gitlab Agent service account the `cluster-admin` ClusterRole. If you want to change this configuration, you can use the `helm_additional_values` variable to pass additional values to the Helm chart.
0 commit comments