Skip to content

Commit c56575b

Browse files
Update docs for v17.1.0 release
1 parent 3853ba9 commit c56575b

10 files changed

+129
-11
lines changed

CHANGELOG.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
1-
## 17.0.0 (2024-06-07)
1+
2+
## 17.1.0 (2024-06-20)
3+
4+
This release was tested against GitLab 17.1, 17.0, and 16.11 for both CE and EE
5+
6+
### BUG FIXES (3 changes)
7+
8+
- resource/gitlab_project_job_token_scopes: [Correct examples for resource project_job_token_scopes](gitlab-org/terraform-provider-gitlab@3027ed1e0861b405ef81f13b3e58fce5aff96ed2) by @heidi.berry ([merge request](gitlab-org/terraform-provider-gitlab!1968))
9+
- resource/gitlab_group_access_token: [Fix an issue where using access tokens with a `time` provider caused segfaults](gitlab-org/terraform-provider-gitlab@de3b98c0881a8aa8a57ca9ea2ac735230b56f8c2) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1999))
10+
- resource/gitlab_project_access_token: [Fix an issue where using access tokens with a `time` provider caused segfaults](gitlab-org/terraform-provider-gitlab@de3b98c0881a8aa8a57ca9ea2ac735230b56f8c2) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1999))
11+
12+
### IMPROVEMENTS (8 changes)
13+
14+
- **New Resource** resource/gitlab_telegram_integration: [Implement Telegram Integration](gitlab-org/terraform-provider-gitlab@bc5eb7cf0138296aedb6f2559166a95f3f56bf32) by @alxrem ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1963))
15+
- resource/gitlab_group_saml_link: [Add ability to set custom roles on group SAML links](gitlab-org/terraform-provider-gitlab1cd431c8238fc690e04e9625951208693977e2c0) by @heidi.berry ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1949))
16+
- resource/gitlab_integration_slack: [Add confidential_note_channel to slack integration](gitlab-org/terraform-provider-gitlab@38c49916a0d21151a59de518ca103b1fca3c5d6d) by @0oMarko0 ([merge request](gitlab-org/terraform-provider-gitlab!1988))
17+
- resource/gitlab_personal_access_token: [Implement manage_runner access token scope](gitlab-org/terraform-provider-gitlab@a5a1c711d0d086a51dfd92fcc751814182e526b8) ([merge request](gitlab-org/terraform-provider-gitlab!1986))
18+
- resource/gitlab_personal_access_token: [Mark `expires_at` attribute as optional](gitlab-org/terraform-provider-gitlab@7be1aa7f6948552eb2e16331b80c83e3f26eb971) by @erezo9 ([merge request](gitlab-org/terraform-provider-gitlab!1983))
19+
- resource/gitlab_group_access_token: [Fixed several documentation issues with access token resources](gitlab-org/terraform-provider-gitlab@738a1ffb41ad7cfaffa205d0c31f827d9f4e59e8) by @theipster ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2004))
20+
- resource/gitlab_project_access_token: [Fixed several documentation issues with access token resources](gitlab-org/terraform-provider-gitlab@738a1ffb41ad7cfaffa205d0c31f827d9f4e59e8) by @theipster ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/2004))
21+
- resource/gitlab_project: [Update `initialize_with_readme` to add border case documentation](gitlab-org/terraform-provider-gitlab@247453b3e45362c4ef91fa9f537d6de7cf49cbfc) by @PatrickRice ([merge request](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1989))
22+
23+
24+
## 17.0.1 (2024-06-07)
225

326
This release was tested against GitLab 17.0, 16.11, and 16.10 for both CE and EE
427

docs/resources/group_access_token.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
page_title: "gitlab_group_access_token Resource - terraform-provider-gitlab"
44
subcategory: ""
55
description: |-
6-
The gitlab_group_access_tokenresource allows to manage the lifecycle of a group access token.
6+
The gitlab_group_access_token resource allows to manage the lifecycle of a group access token.
77
~> Observability scopes are in beta and may not work on all instances. See more details in the documentation https://docs.gitlab.com/ee/operations/tracing.html
88
~> Use rotation_configuration to automatically rotate tokens instead of using timestamp() as timestamp will cause changes with every plan. terraform apply must still be run to rotate the token.
99
~> Due to Automatic reuse detection https://docs.gitlab.com/ee/api/group_access_tokens.html#automatic-reuse-detection it's possible that a new Group Access Token will immediately be revoked. Check if an old process using the old token is running if this happens.
@@ -12,7 +12,7 @@ description: |-
1212

1313
# gitlab_group_access_token (Resource)
1414

15-
The `gitlab_group_access_token`resource allows to manage the lifecycle of a group access token.
15+
The `gitlab_group_access_token` resource allows to manage the lifecycle of a group access token.
1616

1717
~> Observability scopes are in beta and may not work on all instances. See more details in [the documentation](https://docs.gitlab.com/ee/operations/tracing.html)
1818

@@ -48,7 +48,7 @@ resource "gitlab_group_variable" "example" {
4848

4949
- `group` (String) The ID or full path of the group.
5050
- `name` (String) The name of the group access token.
51-
- `scopes` (Set of String) The scopes of the group access token. Valid values are: `api`, `read_api`, `read_user`, `k8s_proxy`, `read_registry`, `write_registry`, `read_repository`, `write_repository`, `create_runner`, `ai_features`, `k8s_proxy`, `read_observability`, `write_observability`
51+
- `scopes` (Set of String) The scopes of the group access token. Valid values are: `api`, `read_api`, `read_registry`, `write_registry`, `read_repository`, `write_repository`, `create_runner`, `manage_runner`, `ai_features`, `k8s_proxy`, `read_observability`, `write_observability`
5252

5353
### Optional
5454

docs/resources/group_saml_link.md

+13
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,20 @@ The `gitlab_group_saml_link` resource allows to manage the lifecycle of an SAML
1616
## Example Usage
1717

1818
```terraform
19+
# Basic example
1920
resource "gitlab_group_saml_link" "test" {
2021
group = "12345"
2122
access_level = "developer"
2223
saml_group_name = "samlgroupname1"
2324
}
25+
26+
# Example using a Custom Role (Ultimate only)
27+
resource "gitlab_group_saml_link" "test_custom_role" {
28+
group = "12345"
29+
access_level = "developer"
30+
saml_group_name = "samlgroupname1"
31+
member_role_id = 123
32+
}
2433
```
2534

2635
<!-- schema generated by tfplugindocs -->
@@ -32,6 +41,10 @@ resource "gitlab_group_saml_link" "test" {
3241
- `group` (String) The ID or path of the group to add the SAML Group Link to.
3342
- `saml_group_name` (String) The name of the SAML group.
3443

44+
### Optional
45+
46+
- `member_role_id` (Number) The ID of a custom member role. Only available for Ultimate instances.
47+
3548
### Read-Only
3649

3750
- `id` (String) The ID of this resource.

docs/resources/integration_slack.md

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ resource "gitlab_integration_slack" "slack" {
4444
- `branches_to_be_notified` (String) Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected".
4545
- `confidential_issue_channel` (String) The name of the channel to receive confidential issue events notifications.
4646
- `confidential_issues_events` (Boolean) Enable notifications for confidential issues events.
47+
- `confidential_note_channel` (String) The name of the channel to receive confidential note events notifications.
4748
- `confidential_note_events` (Boolean) Enable notifications for confidential note events.
4849
- `issue_channel` (String) The name of the channel to receive issue events notifications.
4950
- `issues_events` (Boolean) Enable notifications for issues events.
+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "gitlab_integration_telegram Resource - terraform-provider-gitlab"
4+
subcategory: ""
5+
description: |-
6+
The gitlab_integration_telegram resource allows to manage the lifecycle of a project integration with Telegram.
7+
Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/integrations.html#telegram
8+
---
9+
10+
# gitlab_integration_telegram (Resource)
11+
12+
The `gitlab_integration_telegram` resource allows to manage the lifecycle of a project integration with Telegram.
13+
14+
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#telegram)
15+
16+
## Example Usage
17+
18+
```terraform
19+
resource "gitlab_project" "awesome_project" {
20+
name = "awesome_project"
21+
description = "My awesome project."
22+
visibility_level = "public"
23+
}
24+
25+
resource "gitlab_integration_telegram" "default" {
26+
token = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
27+
room = "-1000000000000000"
28+
29+
notify_only_broken_pipelines = false
30+
branches_to_be_notified = "all"
31+
push_events = false
32+
issues_events = false
33+
confidential_issues_events = false
34+
merge_requests_events = false
35+
tag_push_events = false
36+
note_events = false
37+
confidential_note_events = false
38+
pipeline_events = false
39+
wiki_page_events = false
40+
}
41+
```
42+
43+
<!-- schema generated by tfplugindocs -->
44+
## Schema
45+
46+
### Required
47+
48+
- `confidential_issues_events` (Boolean) Enable notifications for confidential issues events.
49+
- `confidential_note_events` (Boolean) Enable notifications for confidential note events.
50+
- `issues_events` (Boolean) Enable notifications for issues events.
51+
- `merge_requests_events` (Boolean) Enable notifications for merge requests events.
52+
- `note_events` (Boolean) Enable notifications for note events.
53+
- `pipeline_events` (Boolean) Enable notifications for pipeline events.
54+
- `project` (String) The ID or full path of the project to integrate with Telegram.
55+
- `push_events` (Boolean) Enable notifications for push events.
56+
- `room` (String) Unique identifier for the target chat or the username of the target channel (in the format `@channelusername`)
57+
- `tag_push_events` (Boolean) Enable notifications for tag push events.
58+
- `token` (String, Sensitive) The Telegram bot token.
59+
- `wiki_page_events` (Boolean) Enable notifications for wiki page events.
60+
61+
### Optional
62+
63+
- `branches_to_be_notified` (String) Branches to send notifications for (introduced in GitLab 16.5). Update of this attribute was not supported before Gitlab 16.11 due to API bug. Valid options are `all`, `default`, `protected`, `default_and_protected`.
64+
- `notify_only_broken_pipelines` (Boolean) Send notifications for broken pipelines.
65+
66+
### Read-Only
67+
68+
- `id` (String) The ID of this Terraform resource. In the format of `<project>`.
69+
70+
## Import
71+
72+
Import is supported using the following syntax:
73+
74+
```shell
75+
# You can import a gitlab_integration_telegram state using the project ID, e.g.
76+
terraform import gitlab_integration_telegram.default 1
77+
```

docs/resources/personal_access_token.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ resource "gitlab_project_variable" "example" {
3939

4040
### Required
4141

42-
- `expires_at` (String) The token expires at midnight UTC on that date. The date must be in the format YYYY-MM-DD.
4342
- `name` (String) The name of the personal access token.
44-
- `scopes` (Set of String) The scope for the personal access token. It determines the actions which can be performed when authenticating with this token. Valid values are: `api`, `read_user`, `read_api`, `read_repository`, `write_repository`, `read_registry`, `write_registry`, `sudo`, `admin_mode`, `create_runner`.
43+
- `scopes` (Set of String) The scope for the personal access token. It determines the actions which can be performed when authenticating with this token. Valid values are: `api`, `read_user`, `read_api`, `read_repository`, `write_repository`, `read_registry`, `write_registry`, `sudo`, `admin_mode`, `create_runner`, `manage_runner`.
4544
- `user_id` (Number) The id of the user.
4645

46+
### Optional
47+
48+
- `expires_at` (String) The token expires at midnight UTC on that date. The date must be in the format YYYY-MM-DD.
49+
4750
### Read-Only
4851

4952
- `active` (Boolean) True if the token is active.

docs/resources/project.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ resource "gitlab_project" "import_private" {
172172
- `import_url_password` (String, Sensitive) The password for the `import_url`. The value of this field is used to construct a valid `import_url` and is only related to the provider. This field cannot be imported using `terraform import`. See the examples section for how to properly use it.
173173
- `import_url_username` (String) The username for the `import_url`. The value of this field is used to construct a valid `import_url` and is only related to the provider. This field cannot be imported using `terraform import`. See the examples section for how to properly use it.
174174
- `infrastructure_access_level` (String) Set the infrastructure access level. Valid values are `disabled`, `private`, `enabled`.
175-
- `initialize_with_readme` (Boolean) Create main branch with first commit containing a README.md file.
175+
- `initialize_with_readme` (Boolean) Create main branch with first commit containing a README.md file. Must be set to `true` if importing an uninitialized project with a different `default_branch`.
176176
- `issues_access_level` (String) Set the issues access level. Valid values are `disabled`, `private`, `enabled`.
177177
- `issues_enabled` (Boolean) Enable issue tracking for the project.
178178
- `issues_template` (String) Sets the template for new issues in the project.

docs/resources/project_access_token.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ resource "gitlab_project_variable" "example" {
4848

4949
- `name` (String) The name of the project access token.
5050
- `project` (String) The ID or full path of the project.
51-
- `scopes` (Set of String) The scopes of the project access token. valid values are: `api`, `read_api`, `read_user`, `k8s_proxy`, `read_registry`, `write_registry`, `read_repository`, `write_repository`, `create_runner`, `ai_features`, `k8s_proxy`, `read_observability`, `write_observability`
51+
- `scopes` (Set of String) The scopes of the project access token. valid values are: `api`, `read_api`, `read_registry`, `write_registry`, `read_repository`, `write_repository`, `create_runner`, `manage_runner`, `ai_features`, `k8s_proxy`, `read_observability`, `write_observability`
5252

5353
### Optional
5454

docs/resources/project_job_token_scopes.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ Any project not within the defined set in this attribute will be removed, which
2222

2323
```terraform
2424
resource "gitlab_project_job_token_scopes" "allowed_single_project" {
25-
project = "gitlab-org/gitlab"
25+
project_id = 111
2626
target_project_ids = [123]
2727
}
2828
2929
resource "gitlab_project_job_token_scopes" "allowed_multiple_project" {
30-
project = "gitlab-org/gitlab"
30+
project_id = 111
3131
target_project_ids = [123, 456, 789]
3232
}
3333
3434
# This will remove all job token scopes, even if added outside of TF.
3535
resource "gitlab_project_job_token_scopes" "explicit_deny" {
36-
project = "gitlab-org/gitlab"
36+
project_id = 111
3737
target_project_ids = []
3838
}
3939
```

docs/resources/service_slack.md

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ resource "gitlab_service_slack" "slack" {
4747
- `branches_to_be_notified` (String) Branches to send notifications for. Valid options are "all", "default", "protected", and "default_and_protected".
4848
- `confidential_issue_channel` (String) The name of the channel to receive confidential issue events notifications.
4949
- `confidential_issues_events` (Boolean) Enable notifications for confidential issues events.
50+
- `confidential_note_channel` (String) The name of the channel to receive confidential note events notifications.
5051
- `confidential_note_events` (Boolean) Enable notifications for confidential note events.
5152
- `issue_channel` (String) The name of the channel to receive issue events notifications.
5253
- `issues_events` (Boolean) Enable notifications for issues events.

0 commit comments

Comments
 (0)