Skip to content

Commit 91c9daa

Browse files
committed
Merge branch 'main' of github.com:Moon1706/terraform-provider-gitlab into main
2 parents 6f79ff8 + 18ac9f5 commit 91c9daa

File tree

102 files changed

+1101
-332
lines changed

Some content is hidden

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

102 files changed

+1101
-332
lines changed

.gitpod.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
image: gitpod/workspace-go
22
tasks:
3-
- init: go get
3+
# Retrieve our go dependencies. Also inject several vscode settings that are specifically helpful to a GitPod environment and not needed when opening the repo locally.
4+
# The reason the settings are copied to a temp file and then moved is that applying the jq string directly to settings.json results in a blank file.
5+
- init: |
6+
go get
7+
cat .vscode/settings.json | jq '. + {"terminal.integrated.lineHeight": 1.0,"terminal.integrated.letterSpacing": 1.0,"terminal.integrated.scrollback": 5000}' > .vscode/temp.json
8+
mv .vscode/temp.json .vscode/settings.json
49
- name: Start acceptance Test Environment
510
command: make testacc-up
611
openMode: split-right

.vscode/settings.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"go.testEnvVars": {
3-
"TF_ACC": "1",
4-
"GITLAB_TOKEN": "ACCTEST1234567890123",
5-
"GITLAB_BASE_URL": "http://127.0.0.1:8080"
6-
},
7-
"go.testFlags": ["-count=1", "-v"]
8-
}
2+
"go.testEnvVars": {
3+
"TF_ACC": "1",
4+
"GITLAB_TOKEN": "ACCTEST1234567890123",
5+
"GITLAB_BASE_URL": "http://127.0.0.1:8080"
6+
},
7+
"go.testFlags": ["-count=1", "-v", "-timeout=30m"]
8+
}

CHANGELOG.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1-
## 3.14.0 (Unreleased)
1+
## 3.14.0 (2022-05-02)
2+
3+
FEATURES:
4+
5+
* **New Data Source:** `gitlab_project_variable` ([#990](https://github.com/gitlabhq/terraform-provider-gitlab/pull/990))
6+
* **New Data Source:** `gitlab_project_variables` ([#990](https://github.com/gitlabhq/terraform-provider-gitlab/pull/990))
7+
* **New Data Source:** `gitlab_group_variable` ([#990](https://github.com/gitlabhq/terraform-provider-gitlab/pull/990))
8+
* **New Data Source:** `gitlab_group_variables` ([#990](https://github.com/gitlabhq/terraform-provider-gitlab/pull/990))
9+
* **New Data Source:** `gitlab_instance_variable` ([#990](https://github.com/gitlabhq/terraform-provider-gitlab/pull/990))
10+
* **New Data Source:** `gitlab_instance_variables` ([#990](https://github.com/gitlabhq/terraform-provider-gitlab/pull/990))
11+
* **New Resource:** `gitlab_group_project_file_template` ([#971](https://github.com/gitlabhq/terraform-provider-gitlab/pull/971))
12+
* **New Resource:** `gitlab_service_external_wiki` ([#1003](https://github.com/gitlabhq/terraform-provider-gitlab/pull/1003))
13+
* **New Resource:** `gitlab_project_runner_enablement` ([#1016](https://github.com/gitlabhq/terraform-provider-gitlab/pull/1016))
14+
* **New Resource:** `gitlab_personal_access_token` ([#1007](https://github.com/gitlabhq/terraform-provider-gitlab/pull/1007))
15+
16+
IMPROVEMENTS:
17+
18+
* resource/gitlab_deploy_key: Fully support `can_push` attribute ([#1009](https://github.com/gitlabhq/terraform-provider-gitlab/pull/1009))
19+
* resource/gitlab_deploy_key_enable: Fully support `can_push` attribute ([#1009](https://github.com/gitlabhq/terraform-provider-gitlab/pull/1009))
20+
* resource/gitlab_group_access_token: Support `owner` as access level ([#999](https://github.com/gitlabhq/terraform-provider-gitlab/pull/999))
21+
* resource/gitlab_pipeline_trigger: Mark `token` attribute as sensitive ([#1034](https://github.com/gitlabhq/terraform-provider-gitlab/pull/1034))
22+
* resource/gitlab_project: Deprecate `build_coverage_regex` ([#1036](https://github.com/gitlabhq/terraform-provider-gitlab/pull/1036))
23+
* resource/gitlab_project_access_token: Add `access_level` attribute ([#997](https://github.com/gitlabhq/terraform-provider-gitlab/pull/997))
24+
* resource/gitlab_project_protected_environment: Support multiple `deploy_access_levels` ([#1004](https://github.com/gitlabhq/terraform-provider-gitlab/pull/1004))
25+
* resource/gitlab_project_mirror: Support deletion on destroy ([#988](https://github.com/gitlabhq/terraform-provider-gitlab/pull/988))
26+
* resource/gitlab_repository_file: Add `execute_filemode` attribute ([#1038](https://github.com/gitlabhq/terraform-provider-gitlab/pull/1038))
27+
* resource/gitlab_user: Add `namespace_id` attribute ([#987](https://github.com/gitlabhq/terraform-provider-gitlab/pull/987))
28+
* datasource/gitlab_user: Add `namespace_id` attribute ([#987](https://github.com/gitlabhq/terraform-provider-gitlab/pull/987))
29+
* datasource/gitlab_users: Add `namespace_id` attribute ([#987](https://github.com/gitlabhq/terraform-provider-gitlab/pull/987))
230

331
BUG FIXES:
432

docs/data-sources/branch.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,14 @@ data "gitlab_branch" "foo" {
3737
- `name` (String) The name of the branch.
3838
- `project` (String) The full path or id of the project.
3939

40-
### Optional
41-
42-
- `id` (String) The ID of this resource.
43-
4440
### Read-Only
4541

4642
- `can_push` (Boolean) Bool, true if you can push to the branch.
4743
- `commit` (Set of Object) The commit associated with the branch ref. (see [below for nested schema](#nestedatt--commit))
4844
- `default` (Boolean) Bool, true if branch is the default branch for the project.
4945
- `developer_can_merge` (Boolean) Bool, true if developer level access allows to merge branch.
5046
- `developer_can_push` (Boolean) Bool, true if developer level access allows git push.
47+
- `id` (String) The ID of this resource.
5148
- `merged` (Boolean) Bool, true if the branch has been merged into it's parent.
5249
- `protected` (Boolean) Bool, true if branch has branch protection.
5350
- `web_url` (String) The url of the created branch (https.)

docs/data-sources/group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ data "gitlab_group" "foo" {
3434

3535
- `full_path` (String) The full path of the group.
3636
- `group_id` (Number) The ID of the group.
37-
- `id` (String) The ID of this resource.
3837

3938
### Read-Only
4039

4140
- `default_branch_protection` (Number) Whether developers and maintainers can push to the applicable default branch.
4241
- `description` (String) The description of the group.
4342
- `full_name` (String) The full name of the group.
43+
- `id` (String) The ID of this resource.
4444
- `lfs_enabled` (Boolean) Boolean, is LFS enabled for projects in this group.
4545
- `name` (String) The name of this group.
4646
- `parent_id` (Number) Integer, ID of the parent group.

docs/data-sources/group_membership.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ data "gitlab_group_membership" "example" {
3535
- `access_level` (String) Only return members with the desired access level. Acceptable values are: `guest`, `reporter`, `developer`, `maintainer`, `owner`.
3636
- `full_path` (String) The full path of the group.
3737
- `group_id` (Number) The ID of the group.
38-
- `id` (String) The ID of this resource.
3938

4039
### Read-Only
4140

41+
- `id` (String) The ID of this resource.
4242
- `members` (List of Object) The list of group members. (see [below for nested schema](#nestedatt--members))
4343

4444
<a id="nestedatt--members"></a>

docs/data-sources/group_variable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ The `gitlab_group_variable` data source allows to retrieve details about a group
2626
### Optional
2727

2828
- `environment_scope` (String) The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.
29-
- `id` (String) The ID of this resource.
3029

3130
### Read-Only
3231

32+
- `id` (String) The ID of this resource.
3333
- `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`.
3434
- `protected` (Boolean) If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
3535
- `value` (String) The value of the variable.

docs/data-sources/group_variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ The `gitlab_group_variables` data source allows to retrieve all group-level CI/C
2525
### Optional
2626

2727
- `environment_scope` (String) The environment scope of the variable. Defaults to all environment (`*`).
28-
- `id` (String) The ID of this resource.
2928

3029
### Read-Only
3130

31+
- `id` (String) The ID of this resource.
3232
- `variables` (List of Object) The list of variables returned by the search (see [below for nested schema](#nestedatt--variables))
3333

3434
<a id="nestedatt--variables"></a>

docs/data-sources/instance_deploy_keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ data "gitlab_instance_deploy_keys" "example" {
3232

3333
### Optional
3434

35-
- `id` (String) The ID of this resource.
3635
- `public` (Boolean) Only return deploy keys that are public.
3736

3837
### Read-Only
3938

4039
- `deploy_keys` (List of Object) The list of all deploy keys across all projects of the GitLab instance. (see [below for nested schema](#nestedatt--deploy_keys))
40+
- `id` (String) The ID of this resource.
4141

4242
<a id="nestedatt--deploy_keys"></a>
4343
### Nested Schema for `deploy_keys`

docs/data-sources/instance_variable.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ The `gitlab_instance_variable` data source allows to retrieve details about an i
2222

2323
- `key` (String) The name of the variable.
2424

25-
### Optional
26-
27-
- `id` (String) The ID of this resource.
28-
2925
### Read-Only
3026

27+
- `id` (String) The ID of this resource.
3128
- `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`.
3229
- `protected` (Boolean) If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to `false`.
3330
- `value` (String) The value of the variable.

0 commit comments

Comments
 (0)