Skip to content

Commit d908ca1

Browse files
Update docs for v16.10.0 release
1 parent d37afa7 commit d908ca1

File tree

5 files changed

+105
-9
lines changed

5 files changed

+105
-9
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
## 16.10.0 (2024-03-21)
2+
3+
This release was tested against GitLab 16.8, 16.9, and 16.10 for both CE and EE
4+
5+
NOTES:
6+
7+
- scripts/gitlab.rb has been updated for local development to set the license mode and customer portal URL for testing. If you're using a personal license for local development, you may need to update this file temporarily to run EE locally. ([!1861](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1861))
8+
9+
IMPROVEMENTS:
10+
- **New Data Source** datasource/gitlab_release: Allows querying a GitLab Release by project and tag name to get release information or assets ([!1851](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1851))
11+
12+
BUG FIXES:
13+
14+
- resources/gitlab_project_level_mr_approvals: fixed a documentation issue with the use of `merge_requests_disable_committers_approval` ([!1864](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1864))
15+
- resources/gitlab_group_ldap_link: fixed an issue where deleting the group associated to an LDAP link would result in a TF state that required manual intervention. Using a value of `true` with the `force` attribute will now remove the LDAP link from state when the group is deleted. ([!1842](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1842))
16+
- resources/gitlab_cluster_agent: fixed the example documentation to show the file contents as encoded ([!1852](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1852))
17+
- resources/gitlab_pipeline_schedule: fixed a potential panic on the provider that could occur when there was an error editing the pipeline schedule ([!1847](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1847))
18+
19+
20+
## 16.9.1 (2024-02-15)
21+
22+
This release was tested against GitLab 16.7, 16.8, and 16.9 for both CE and EE
23+
24+
BUG FIXES:
25+
26+
- Fixed a Go version mismatch when using `goreleaser` that prevented v16.9.0 from being published properly ([!1839](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1839))
27+
128
## 16.9.0 (2024-02-15)
229

330
This release was tested against GitLab 16.7, 16.8, and 16.9 for both CE and EE

docs/data-sources/release.md

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gitlab_release Data Source - terraform-provider-gitlab"
4+
subcategory: ""
5+
description: |-
6+
The gitlab_release data source retrieves information about a gitlab release for a project.
7+
Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/releases/
8+
---
9+
10+
# gitlab_release (Data Source)
11+
12+
The `gitlab_release` data source retrieves information about a gitlab release for a project.
13+
14+
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/releases/)
15+
16+
## Example Usage
17+
18+
```terraform
19+
# By project ID and tag_name
20+
data "gitlab_release" "example" {
21+
project_id = 1234
22+
tag_name = "v1.0"
23+
}
24+
```
25+
26+
<!-- schema generated by tfplugindocs -->
27+
## Schema
28+
29+
### Required
30+
31+
- `project_id` (String) The ID or URL-encoded path of the project.
32+
- `tag_name` (String) The Git tag the release is associated with.
33+
34+
### Read-Only
35+
36+
- `assets` (Block, Read-only) The assets for a release (see [below for nested schema](#nestedblock--assets))
37+
- `created_at` (String) The date the release was created.
38+
- `description` (String) An HTML rendered description of the release.
39+
- `id` (String) The ID of this Terraform resource. In the format of `<project_id:tag_name>`.
40+
- `name` (String) The name of the release.
41+
- `released_at` (String) The date the release was created.
42+
43+
<a id="nestedblock--assets"></a>
44+
### Nested Schema for `assets`
45+
46+
Read-Only:
47+
48+
- `count` (Number) The number of assets for a release
49+
- `links` (Block List) The links for a release (see [below for nested schema](#nestedblock--assets--links))
50+
- `sources` (Block List) The sources for a release (see [below for nested schema](#nestedblock--assets--sources))
51+
52+
<a id="nestedblock--assets--links"></a>
53+
### Nested Schema for `assets.links`
54+
55+
Read-Only:
56+
57+
- `id` (Number) The ID of the link
58+
- `link_type` (String) The type of the link
59+
- `name` (String) The name of the link
60+
- `url` (String) The URL of the link
61+
62+
63+
<a id="nestedblock--assets--sources"></a>
64+
### Nested Schema for `assets.sources`
65+
66+
Read-Only:
67+
68+
- `format` (String) The format of the source
69+
- `url` (String) The URL of the source

docs/resources/cluster_agent.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ resource "gitlab_cluster_agent" "example" {
3939
// Optionally, configure the agent as described in
4040
// https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#create-an-agent-configuration-file
4141
resource "gitlab_repository_file" "example_agent_config" {
42-
project = gitlab_cluster_agent.example.project
43-
branch = "main" // or use the `default_branch` attribute from a project data source / resource
44-
file_path = ".gitlab/agents/${gitlab_cluster_agent.example.name}"
45-
content = <<CONTENT
46-
gitops:
47-
...
42+
project = gitlab_cluster_agent.example.project
43+
branch = "main" // or use the `default_branch` attribute from a project data source / resource
44+
file_path = ".gitlab/agents/${gitlab_cluster_agent.example.name}/config.yaml"
45+
content = base64encode(<<CONTENT
46+
# the GitLab Agent for Kubernetes configuration goes here ...
4847
CONTENT
48+
)
4949
author_email = "[email protected]"
5050
author_name = "Terraform"
51-
commit_message = "feature: add agent config for ${gitlab_cluster_agent.example.name}"
51+
commit_message = "feature: add agent config for ${gitlab_cluster_agent.example.name} [skip ci]"
5252
}
5353
```
5454

docs/resources/group_ldap_link.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ resource "gitlab_group_ldap_link" "test" {
3737
- `access_level` (String, Deprecated) Minimum access level for members of the LDAP group. Valid values are: `no one`, `minimal`, `guest`, `reporter`, `developer`, `maintainer`, `owner`, `master`
3838
- `cn` (String) The CN of the LDAP group to link with. Required if `filter` is not provided.
3939
- `filter` (String) The LDAP filter for the group. Required if `cn` is not provided. Requires GitLab Premium or above.
40-
- `force` (Boolean) If true, then delete and replace an existing LDAP link if one exists.
40+
- `force` (Boolean) If true, then delete and replace an existing LDAP link if one exists. Will also remove an LDAP link if the parent group is not found.
4141
- `group_access` (String) Minimum access level for members of the LDAP group. Valid values are: `no one`, `minimal`, `guest`, `reporter`, `developer`, `maintainer`, `owner`, `master`
4242

4343
### Read-Only

docs/resources/project_level_mr_approvals.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ resource "gitlab_project_level_mr_approvals" "foo" {
4444

4545
- `disable_overriding_approvers_per_merge_request` (Boolean) Set to `true` to disable overriding approvers per merge request.
4646
- `merge_requests_author_approval` (Boolean) Set to `true` to allow merge requests authors to approve their own merge requests.
47-
- `merge_requests_disable_committers_approval` (Boolean) Set to `true` to allow merge requests committers to approve their own merge requests.
47+
- `merge_requests_disable_committers_approval` (Boolean) Set to `true` to disable merge request committers from approving their own merge requests.
4848
- `require_password_to_approve` (Boolean) Set to `true` to require authentication to approve merge requests.
4949
- `reset_approvals_on_push` (Boolean) Set to `true` to remove all approvals in a merge request when new commits are pushed to its source branch. Default is `true`.
5050
- `selective_code_owner_removals` (Boolean) Reset approvals from Code Owners if their files changed. Can be enabled only if reset_approvals_on_push is disabled.

0 commit comments

Comments
 (0)