Skip to content

Commit ebab296

Browse files
Update docs for v16.0.1 release
1 parent 42caec0 commit ebab296

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## 16.0.1 (2023-05-23)
2+
3+
This release was tested against GitLab 15.10, 15.11 and 16.0 for both CE and EE.
4+
5+
BREAKING CHANGES:
6+
7+
Since this is a bug fix release for a major release with breaking changes you may
8+
want to follow the [Terraform GitLab Provider Version 16.0 Upgrade Guide](https://registry.terraform.io/providers/gitlabhq/gitlab/latest/docs/guides/version-16.0-upgrade) for details.
9+
10+
BUG FIXES:
11+
12+
- resource/gitlab_pipeline_schedule_variable: Fix panic when `pipeline_schedule_id` is a `float64` in state
13+
- resource/gitlab_project_variable: Fix panic when upgrading from a state that was created prior to GitLab 13.4
14+
- resource/gitlab_project_level_mr_approvals: Add state migration for `project_id` to `project`
15+
- resource/gitlab_project_freeze_period: Add state migration for `project_id` to `project`
16+
- resource/gitlab_project_membership: Add state migration for `project_id` to `project`
17+
- resource/gitlab_project_share_group: Add state migration for `project_id` to `project`
18+
- resource/gitlab_project_access_token: Mark `expires_at` as computed
19+
- resource/gitlab_group_access_token: Mark `expires_at` as computed
20+
121
## 16.0.0 (2023-05-22)
222

323
- This release was tested against GitLab 15.10, 15.11 and 16.0 for both CE and EE.

docs/resources/group_access_token.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource "gitlab_group_variable" "example" {
4747
### Optional
4848

4949
- `access_level` (String) The access level for the group access token. Valid values are: `guest`, `reporter`, `developer`, `maintainer`, `owner`.
50-
- `expires_at` (String) The token expires at midnight UTC on that date. The date must be in the format YYYY-MM-DD. Default is never.
50+
- `expires_at` (String) The token expires at midnight UTC on that date. The date must be in the format YYYY-MM-DD.
5151

5252
### Read-Only
5353

docs/resources/label.md

+5-25
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,19 @@ page_title: "gitlab_label Resource - terraform-provider-gitlab"
44
subcategory: ""
55
description: |-
66
The gitlab_label resource allows to manage the lifecycle of a project label.
7+
~> This resource is deprecated. use gitlab_project_labelinstead!
78
Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/labels.html#project-labels
89
---
910

1011
# gitlab_label (Resource)
1112

1213
The `gitlab_label` resource allows to manage the lifecycle of a project label.
1314

15+
~> This resource is deprecated. use `gitlab_project_label`instead!
16+
1417
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/labels.html#project-labels)
1518

16-
## Example Usage
17-
18-
```terraform
19-
resource "gitlab_label" "fixme" {
20-
project = "example"
21-
name = "fixme"
22-
description = "issue with failing tests"
23-
color = "#ffcc00"
24-
}
25-
26-
# Scoped label
27-
resource "gitlab_label" "devops_create" {
28-
project = gitlab_project.example.id
29-
name = "devops::create"
30-
description = "issue for creating infrastructure resources"
31-
color = "#ffa500"
32-
}
33-
```
19+
3420

3521
<!-- schema generated by tfplugindocs -->
3622
## Schema
@@ -48,12 +34,6 @@ resource "gitlab_label" "devops_create" {
4834
### Read-Only
4935

5036
- `id` (String) The ID of this resource.
37+
- `label_id` (Number) The id of the project label.
5138

52-
## Import
53-
54-
Import is supported using the following syntax:
5539

56-
```shell
57-
# Gitlab labels can be imported using an id made up of `{project_id}:{group_label_id}`, e.g.
58-
terraform import gitlab_label.example 12345:fixme
59-
```

docs/resources/personal_access_token.md

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

4646
### Optional
4747

48-
- `expires_at` (String) The token expires at midnight UTC on that date. The date must be in the format YYYY-MM-DD. Default is never.
48+
- `expires_at` (String) The token expires at midnight UTC on that date. The date must be in the format YYYY-MM-DD.
4949

5050
### Read-Only
5151

docs/resources/project_access_token.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ resource "gitlab_project_variable" "example" {
3737

3838
### Required
3939

40-
- `expires_at` (String) Time the token will expire it, YYYY-MM-DD format.
4140
- `name` (String) A name to describe the project access token.
4241
- `project` (String) The id of the project to add the project access token to.
4342
- `scopes` (Set of String) Valid values: `api`, `read_api`, `read_repository`, `write_repository`, `read_registry`, `write_registry`.
4443

4544
### Optional
4645

4746
- `access_level` (String) The access level for the project access token. Valid values are: `no one`, `minimal`, `guest`, `reporter`, `developer`, `maintainer`, `owner`, `master`. Default is `maintainer`.
47+
- `expires_at` (String) Time the token will expire it, YYYY-MM-DD format.
4848

4949
### Read-Only
5050

0 commit comments

Comments
 (0)