Skip to content

Commit 42caec0

Browse files
Update docs for v16.0.0 release
1 parent 1ad6952 commit 42caec0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+785
-36
lines changed

CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
## 16.0.0 (2023-05-22)
2+
3+
- This release was tested against GitLab 15.10, 15.11 and 16.0 for both CE and EE.
4+
- **Note:** this is a major release and breaks some interfaces in resources and data sources of
5+
this provider, but also drops support for older GitLab versions.
6+
7+
BREAKING CHANGES:
8+
9+
See [Terraform GitLab Provider Version 16.0 Upgrade Guide](https://registry.terraform.io/providers/gitlabhq/gitlab/latest/docs/guides/version-16.0-upgrade) for details.
10+
11+
BREAKING CHANGES:
12+
13+
- resource/gitlab_instance_variable: Change `value` attribute to non-sensitive ([!1521](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1521))
14+
- resource/gitlab_group_variable: Change `value` attribute to non-sensitive ([!1521](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1521))
15+
- resource/gitlab_project_variable: Change `value` attribute to non-sensitive ([!1521](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1521))
16+
- resource/gitlab_deploy_token: Change resource id format to `<token-type>:<type-id>:<token-id>` ([!1523](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1523))
17+
- resource/gitlab_deploy_key: Change resource id format to `<project>:<key-id>` ([!1522](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1522))
18+
- resource/gitlab_project_hook: Change resource id format to `<project>:<hook-id>` ([!1483](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1483))
19+
- resource/gitlab_group_label: Change resource id format to `<group>:<label-name>` ([!1525](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1525))
20+
- resource/gitlab_label: Rename resource to `gitlab_project_label` ([!1526](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1526))
21+
- resource/gitlab_project_label: Change resource id format to `<project>:<label-name>` ([!1526](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1526))
22+
- resource/gitlab_managed_license: Remove resource ([!1512](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1512))
23+
- resource/gitlab_pipeline_schedule_variable: Change resource id format to `<project>:<schedule-id>:<variable-id>` ([!1529](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1529))
24+
- resource/gitlab_repository_file: Remove support for auto-encoding logic ([!1530](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1530))
25+
- resource/gitlab_group_ldap_link: Change resource id format to `<group>:<provider>:[cn]:[filter]` ([!1527](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1527))
26+
- resource/gitlab_group_ldap_link: Rename `group_id` attribute to `group` ([!1532](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1532))
27+
- resource/gitlab_service_*: Rename `gitlab_service_*` resources to `gitlab_integration_*` ([!1534](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1534))
28+
- resource/gitlab_project: Remove `operations_access_level` ([!1548](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1548))
29+
- datasource/gitlab_project: Remove `operations_access_level` ([!1548](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1548))
30+
- datasource/gitlab_projects: Remove `operations_access_level` ([!1548](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1548))
31+
- resource/gitlab_pipeline_trigger: Change resource id format to `<project>:<trigger-id>` ([!1551](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1551))
32+
- resource/gitlab_pipeline_schedule: Change resource id format to `<project>:<schedule-id>` ([!1551](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1551))
33+
- resource/gitlab_project_freeze_period: Change `project_id` attribute to `project` ([!1553](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1553))
34+
- resource/gitlab_project_level_mr_approvals: Change `project_id` attribute to `project` ([!1553](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1553))
35+
- resource/gitlab_project_membership: Change `project_id` attribute to `project` ([!1553](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1553))
36+
- resource/gitlab_project_share_group: Change `project_id` attribute to `project` ([!1553](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1553))
37+
- resource/gitlab_project_access_token: Require `expires_at` attribute ([!1557](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1557))
38+
39+
FEATURES:
40+
41+
- resource/gitlab_instance_variable: Support `raw` attribute ([!1533](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1533))
42+
- resource/gitlab_group_variable: Support `raw` attribute ([!1533](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1533))
43+
- resource/gitlab_project_variable: Support `raw` attribute ([!1533](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1533))
44+
- datasource/gitlab_instance_variable: Support `raw` attribute ([!1533](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1533))
45+
- datasource/gitlab_group_variable: Support `raw` attribute ([!1533](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1533))
46+
- datasource/gitlab_project_variable: Support `raw` attribute ([!1533](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1533))
47+
48+
IMPROVEMENTS:
49+
50+
- resource/gitlab_project_environment: Wait for environment to stop before deleting it ([!1509](https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1509))
51+
152
## 15.11.0 (2023-04-22)
253

354
This release was tested against GitLab 15.9, 15.10 and 15.11 for both CE and EE.

docs/data-sources/group_variable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ data "gitlab_group_variable" "bar" {
4646
- `id` (String) The ID of this resource.
4747
- `masked` (Boolean) If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`.
4848
- `protected` (Boolean) If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
49+
- `raw` (Boolean) Whether the variable is treated as a raw string. Default: false. When true, variables in the value are not expanded.
4950
- `value` (String) The value of the variable.
5051
- `variable_type` (String) The type of a variable. Valid values are: `env_var`, `file`. Default is `env_var`.
5152

docs/data-sources/group_variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Read-Only:
5353
- `key` (String)
5454
- `masked` (Boolean)
5555
- `protected` (Boolean)
56+
- `raw` (Boolean)
5657
- `value` (String)
5758
- `variable_type` (String)
5859

docs/data-sources/instance_variable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ data "gitlab_instance_variable" "foo" {
3333
- `id` (String) The ID of this resource.
3434
- `masked` (Boolean) If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`.
3535
- `protected` (Boolean) If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
36+
- `raw` (Boolean) Whether the variable is treated as a raw string. Default: false. When true, variables in the value are not expanded.
3637
- `value` (String) The value of the variable.
3738
- `variable_type` (String) The type of a variable. Valid values are: `env_var`, `file`. Default is `env_var`.
3839

docs/data-sources/instance_variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Read-Only:
3535
- `key` (String)
3636
- `masked` (Boolean)
3737
- `protected` (Boolean)
38+
- `raw` (Boolean)
3839
- `value` (String)
3940
- `variable_type` (String)
4041

docs/data-sources/project.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ data "gitlab_project" "example" {
7474
- `monitor_access_level` (String) Set the monitor access level. Valid values are `disabled`, `private`, `enabled`.
7575
- `name` (String) The name of the project.
7676
- `namespace_id` (Number) The namespace (group or user) of the project. Defaults to your user.
77-
- `operations_access_level` (String) Set the operations access level. Valid values are `disabled`, `private`, `enabled`.
7877
- `path` (String) The path of the repository.
7978
- `pipelines_enabled` (Boolean) Enable pipelines for the project.
8079
- `printing_merge_request_link_enabled` (Boolean) Show link to create/view merge request when pushing from the command line

docs/data-sources/project_issue.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ The `gitlab_project_issue` data source allows to retrieve details about an issue
1616
## Example Usage
1717

1818
```terraform
19-
data "gitlab_project" "foo" {
20-
id = "foo/bar/baz"
21-
}
22-
23-
data "gitlab_project_issue" "welcome_issue" {
24-
project = data.gitlab_project.foo.id
25-
iid = 1
26-
}
27-
28-
output "welcome_issue_web_url" {
29-
value = data.gitlab_project_issue.web_url
19+
data "gitlab_project" "foo" {
20+
path_with_namespace = "foo/bar/baz"
21+
}
22+
23+
data "gitlab_project_issue" "welcome_issue" {
24+
project = data.gitlab_project.foo.id
25+
iid = 1
26+
}
27+
28+
output "welcome_issue_web_url" {
29+
value = data.gitlab_project_issue.web_url
3030
}
3131
```
3232

docs/data-sources/project_variable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ data "gitlab_project_variable" "bar" {
4646
- `id` (String) The ID of this resource.
4747
- `masked` (Boolean) If set to `true`, the value of the variable will be hidden in job logs. The value must meet the [masking requirements](https://docs.gitlab.com/ee/ci/variables/#masked-variables). Defaults to `false`.
4848
- `protected` (Boolean) If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
49+
- `raw` (Boolean) Whether the variable is treated as a raw string. Default: false. When true, variables in the value are not expanded.
4950
- `value` (String) The value of the variable.
5051
- `variable_type` (String) The type of a variable. Valid values are: `env_var`, `file`. Default is `env_var`.
5152

docs/data-sources/project_variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Read-Only:
5353
- `masked` (Boolean)
5454
- `project` (String)
5555
- `protected` (Boolean)
56+
- `raw` (Boolean)
5657
- `value` (String)
5758
- `variable_type` (String)
5859

docs/data-sources/projects.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ Read-Only:
140140
- `only_allow_merge_if_pipeline_succeeds` (Boolean)
141141
- `only_mirror_protected_branches` (Boolean)
142142
- `open_issues_count` (Number)
143-
- `operations_access_level` (String)
144143
- `owner` (List of Object) (see [below for nested schema](#nestedobjatt--projects--owner))
145144
- `packages_enabled` (Boolean)
146145
- `path` (String)

0 commit comments

Comments
 (0)