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
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,13 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
9
9
## [Unreleased]
10
10
11
+
## [0.10.0] - 2025-05-16
12
+
13
+
[Compare with previous version](https://github.com/sparkfabrik/terraform-gitlab-kubernetes-gitlab-agent/compare/0.9.0...0.10.0)
14
+
15
+
### Added
16
+
17
+
- Add the `gitlab_agent_deploy_enabled` variable to control whether to deploy the GitLab Agent components. When set to false, the module only creates the GitLab Agent token, Kubernetes namespace and secret without deploying the agent itself.
11
18
- Upgrade terraform docs docker image using renovate.
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ provider "gitlab" {
57
57
| <aname="input_gitlab_agent_commmit_message"></a> [gitlab\_agent\_commmit\_message](#input\_gitlab\_agent\_commmit\_message)| The commit message to use when committing the Gitlab Agent configuration file. You can use the placeholder `{{gitlab_agent_name}}` to reference the Gitlab Agent name. |`string`|`"[CI] Add agent config file for {{gitlab_agent_name}}"`| no |
58
58
| <aname="input_gitlab_agent_create_variables_in_root_namespace"></a> [gitlab\_agent\_create\_variables\_in\_root\_namespace](#input\_gitlab\_agent\_create\_variables\_in\_root\_namespace)| Create two Gitlab CI/CD variables in the root namespace useful to configure the Kubernetes context and use the Gitlab Agent. These variables are created in the root namespace of the project defined in `gitlab_project_path_with_namespace`, which is the project that hosts the Gitlab Agent configuration. |`bool`|`true`| no |
59
59
| <aname="input_gitlab_agent_custom_config_file_content"></a> [gitlab\_agent\_custom\_config\_file\_content](#input\_gitlab\_agent\_custom\_config\_file\_content)| The content of the Gitlab Agent configuration file. If not provided and `gitlab_agent_grant_access_to_entire_root_namespace` is true, the default configuration file will be used and the root namespace will be granted access to the Gitlab Agent. If you set this variable, it takes precedence over `gitlab_agent_grant_access_to_entire_root_namespace`. |`string`|`""`| no |
60
+
| <aname="input_gitlab_agent_deploy_enabled"></a> [gitlab\_agent\_enabled\_deploy](#input\_gitlab\_agent\_enabled\_deploy)| Whether to deploy the GitLab Agent components. If false, only creates the GitLab Agent token, Kubernetes namespace and secret without deploying the agent itself. |`bool`|`true`| no |
60
61
| <aname="input_gitlab_agent_grant_access_to_entire_root_namespace"></a> [gitlab\_agent\_grant\_access\_to\_entire\_root\_namespace](#input\_gitlab\_agent\_grant\_access\_to\_entire\_root\_namespace)| Grant access to the entire root namespace. If false, you can provide a custom configuration file content using the variable `gitlab_agent_custom_config_file_content`. Otherwise, you will have to manually manage the access to the Gitlab Agent committing the proper configuration to the Gitlab project. |`bool`|`true`| no |
61
62
| <aname="input_gitlab_agent_grant_user_access_to_root_namespace"></a> [gitlab\_agent\_grant\_user\_access\_to\_root\_namespace](#input\_gitlab\_agent\_grant\_user\_access\_to\_root\_namespace)| Grant `user_access` to the root namespace. |`bool`|`false`| no |
62
63
| <aname="input_gitlab_agent_name"></a> [gitlab\_agent\_name](#input\_gitlab\_agent\_name)| The name of the Gitlab Agent. |`string`| n/a | yes |
@@ -67,7 +68,7 @@ provider "gitlab" {
67
68
| <aname="input_gitlab_project_name"></a> [gitlab\_project\_name](#input\_gitlab\_project\_name)| The name of the Gitlab project that hosts the Gitlab Agent configuration. If not provided, the module will use the project defined in `gitlab_project_path_with_namespace`. |`string`|`""`| no |
68
69
| <aname="input_gitlab_project_path_with_namespace"></a> [gitlab\_project\_path\_with\_namespace](#input\_gitlab\_project\_path\_with\_namespace)| The path with namespace of the Gitlab project that hosts the Gitlab Agent configuration. The project must be created in Gitlab before running this module. The configured Gitlab provider must have write access to the project. |`string`| n/a | yes |
69
70
| <aname="input_helm_additional_values"></a> [helm\_additional\_values](#input\_helm\_additional\_values)| Additional values to be passed to the Helm chart. |`list(string)`|`[]`| no |
70
-
| <aname="input_helm_chart_version"></a> [helm\_chart\_version](#input\_helm\_chart\_version)| The version of the gitlab-agent Helm chart. You can see the available versions at https://gitlab.com/gitlab-org/charts/gitlab-agent/-/tags, or using the command `helm search repo gitlab/gitlab-agent -l` after adding the Gitlab Helm repository. |`string`|`"2.11.0"`| no |
71
+
| <aname="input_helm_chart_version"></a> [helm\_chart\_version](#input\_helm\_chart\_version)| The version of the gitlab-agent Helm chart. You can see the available versions at https://gitlab.com/gitlab-org/charts/gitlab-agent/-/tags, or using the command `helm search repo gitlab/gitlab-agent -l` after adding the Gitlab Helm repository. |`string`|`"2.13.0"`| no |
71
72
| <aname="input_helm_release_name"></a> [helm\_release\_name](#input\_helm\_release\_name)| The name of the Helm release. |`string`|`"gitlab-agent"`| no |
72
73
| <aname="input_k8s_additional_labels"></a> [k8s\_additional\_labels](#input\_k8s\_additional\_labels)| Additional labels to apply to the kubernetes resources. |`map(string)`|`{}`| no |
73
74
| <aname="input_k8s_default_labels"></a> [k8s\_default\_labels](#input\_k8s\_default\_labels)| Labels to apply to the kubernetes resources. These are opinionated labels, you can add more labels using the variable `additional_k8s_labels`. If you want to remove a label, you can override it with an empty map(string). |`map(string)`| <pre>{<br/> "managed-by": "terraform",<br/> "scope": "gitlab-agent"<br/>}</pre> | no |
Copy file name to clipboardExpand all lines: variables.tf
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,11 @@ variable "gitlab_project_name" {
3
3
type=string
4
4
default=""
5
5
}
6
+
variable"gitlab_agent_deploy_enabled" {
7
+
description="Whether to deploy the GitLab Agent components. If false, only creates the GitLab Agent token, Kubernetes namespace and secret without deploying the agent itself."
8
+
type=bool
9
+
default=true
10
+
}
6
11
7
12
variable"gitlab_project_path_with_namespace" {
8
13
description="The path with namespace of the Gitlab project that hosts the Gitlab Agent configuration. The project must be created in Gitlab before running this module. The configured Gitlab provider must have write access to the project."
0 commit comments