FEATURES:
- Add protected_branch_ids to gitlab_project_approval_rule #542
- Add most Premium features for gitlab_branch_protection #556
- Adds support for gitlab project badges #648
ENHANCEMENTS:
- Add CustomCIPath to resource gitlab_project #662
- add build coverage regex #627
- Add tfproviderlint linter to CI #653
- Documentation improvements #642
- chore: add error handling to resourceGitlabProjectSetToState #649
- Missing documentation for gitlab_instance_variable #602
- Add support for importing Pipeline Schedules and Triggers #618
- update reference to master branch to main #612
BUGFIXES:
- Fix project approval rule tests #660
- Fix markdown linter errors in branch_protection.md #656
- fix: update default branch name to "main" #643
- gitlab_project: Wait for template projects to be cloned/imported #621
ENHANCEMENTS:
- Support the Note field in the User resource/data (#572)
- add diffSuppressFunc for 'expires_at' attribute in 'deploy_token' (#575)
- Update to Go 1.16 and terraform-plugin-sdk 1.16 (#579)
- Bump github.com/xanzy/go-gitlab from 0.44.0 to 0.46.0 (#586)
BUG FIXES:
- Fix "Run failed" on forks (#565)
FEATURES:
- Add resource for project freeze periods (#516)
ENHANCEMENTS:
- Update go version and go-gitlab version (#523)
- Support additional attributes in
gitlab_project_hook
(#525) - Link badges in README to proper workflows (#527)
- gitlab_project: Check each push rule individually (#531)
- Allow
full_path
in addition toid
in gitlab_project data source (#532) - Update test fixtures for better usability (#535)
- Check for state change on user delete (#539)
- Increase gitlab_project import timeout (#536)
- Add optional mirror options (#554)
- Remove vendor folder (#546)
- Add dependabot config (#558)
- Fix EE tests actually running against CE (#564)
- Fix EE test mounting license as a directory (#568)
BUG FIXES:
FEATURES:
FEATURES:
- Support instance level CI variables (#389)
ENHANCEMENTS
- Add the pages_access_level parameter (#472)
- Do not fail when project member does not exist (#473)
- Make the runners_token on the project secret (#474)
- Fix nil pointer dereference importing gitlab_user (#490)
- Fix unit and acceptance tests not running (#495)
FEATURES:
- Project Approval Rules (#250)
ENHANCEMENTS
ENHANCEMENTS:
- Enable custom UserAgent (#451)
- gitlab_project_mirror: Mark URL as sensitive (#458)
- Remove old-style variable interpolation (#456)
BUG FIXES:
- add pagination for ListPipelineSchedules (#454)
BREAKING CHANGES:
- Resource
gitlab_project_push_rules
has been removed. You now instead specify project push rules using thepush_rules
attribute on thegitlab_project
resource. - The
shared_with_groups
attribute has been removed from thegitlab_project
resource (but not the data source). You may use thegitlab_project_share_group
resource instead.
NOTES:
- If you are using the
environment_scope
attribute ofgitlab_project_variable
to manage multiple variables with the same key, it is recommended to use GitLab 13.4+. See this related GitLab issue for older versions. - The ID format of the
gitlab_project_variable
resource changed. The upgrade should be automatic. - The default value of the
gitlab_project_variable
resource'senvironment_scope
attribute has changed from0
to*
.
FEATURES:
- New Data Source:
gitlab_group_membership
(#264) - New Resource:
gitlab_instance_cluster
(#367) - New Resource:
gitlab_project_level_mr_approvals
(#356) - New Resource:
gitlab_project_mirror
(#358) - New Resource:
gitlab_service_pipelines_email
(#375)
ENHANCEMENTS:
- data-source/gitlab_project: New attributes
packages_enabled
,path_with_namespace
andpush_rules
(#405, #403, #422) - resource/gitlab_branch_protection: New
code_owner_approval_required
attribute (#380) - resource/gitlab_project: New attributes
packages_enabled
,path_with_namespace
, andpush_rules
(#405, #403, #422) - resource/gitlab_group: New attributes
share_with_group_lock
,project_creation_level
,auto_devops_enabled
,emails_disabled
,mentions_disabled
,subgroup_creation_level
,require_two_factor_authentication
, andtwo_factor_grace_period
(#362) - resource/gitlab_group: Automatically detect removal (#267)
- resource/gitlab_group_label: Can now be imported (#339)
- resource/gitlab_project: New
import_url
attribute (#381) - resource/gitlab_project_push_rules: Can now be imported (#360)
- resource/gitlab_project_variable: Better error message when a masked variable fails validation (#371)
- resource/gitlab_project_variable: Automatically detect removal (#409)
- resource/gitlab_service_jira: Automatically detect removal (#337)
- resource/gitlab_user: The
email
attribute can be changed without forcing recreation (#261) - resource/gitlab_user: Require either the
password
orreset_password
attribute to be set (#262)
BUG FIXES:
- resource/gitlab_pipeline_schedule: Fix a rare error during deletion (#364)
- resource/gitlab_pipeline_schedule_variable: Fix a rare error during deletion (#364)
- resource/gitlab_project: Fix the
default_branch
attribute changing tonull
after first apply (#343) - resource/gitlab_project_share_group: Fix the
access_level
attribute not updating (#421) - resource/gitlab_project_share_group: Fix the share not working if the project is also managed (#421)
- resource/gitlab_project_variable: Fix inconsistent reads for variables with non-unique keys (#409)
- resource/gitlab_project_variable: Change the default
environment_scope
from0
to*
(#409) - resource/gitlab_service_jira: Fix a rare state inconsistency problem during creation (#363)
- resource/gitlab_user: Fix some attributes saving incorrectly in state (#261)
ENHANCEMENTS:
- Improvements to resource
gitlab_user
import (#340)
FEATURES:
- New Resource:
gitlab_service_github
(#311)
ENHANCEMENTS:
- add attribute
remove_source_branch_after_merge
to projects (#289)
BUGFIXES:
- fix for flaky
gitlab_group
tests (#320) - Creating custom skip function for group_ldap_link tests. (#328)
FEATURES:
ENHANCEMENTS:
- Add
management_project_id
for Group and Project Clusters (#301)
FEATURES:
ENHANCEMENTS:
- Update resource gitlab_group_label to read labels from all pages (#302)
- Provide a way to specify client cert and key (#315)
BUGFIXES:
- Increase MaxIdleConnsPerHost in http.Transport (#305)
- Implement
masked
parameters forgitlab_group_variable
(#271)
ENHANCEMENTS:
- Add jira flags (#274)
BUGFIXES:
- Support for soft-delete of groups and projects in Gitlab Enterprise Edition (#282, #283, #285, #291)
ENHANCEMENTS:
- Switched from Travis CI to Github Actions (#216)
ENHANCEMENTS:
- Implement
lfs_enabled
,request_access_enabled
, andpipelines_enabled
parameters forgitlab_project
(#225, #226, #227)
BUGFIXES:
- Fix label support when there is more than 20 labels on a project (#229)
- Enable
environment_scope
forgitlab_project_variable
lookup (#228) - Fix users data source when there is more than 20 users returned (#230)
FEATURES:
- New Resource:
gitlab_group_label
(#186) - New Resource:
gitlab_group_cluster
(#178) - New Resource:
gitlab_pipeline_schedule_variable
(#204)
ENHANCEMENTS:
- Add
runners_token
to gitlab groups (#218) - Add
reset_password
togitlab_user
(#127) - Update
access_level
available values (#220) - Make read callbacks graceful for
gitlab_project_share_group
,gitlab_branch_protection
andgitlab_label
resources (#223)
BUGFIXES:
- Fix state not being updated for
gitlab_branch_protection
(#166) - Set ForceNew for
gitlab_pipeline_schedule
project
(#203)
We would like to thank Gitlab, which has provided us a EE license. This project is now tested against Gitlab CE and Gitlab EE.
FEATURES:
- New Resource:
gitlab_project_push_rules
(#163) - New Resource:
gitlab_deploy_key_enable
(#176) - New Resource:
gitlab_project_share_group
(#167)
ENHANCEMENTS:
- Add
initialize_with_readme
togitlab_project
(#179) - Add support for more variable options (#169)
- Documentation improvements (#168, #187, #171)
BUGFIXES:
- Fix tag protection URL (#156)
- Properly manage the default branch in a git repo (#158)
- Resolve triggers pagination issue by calling
GetPipelineTrigger
(#173)
FEATURES:
ENHANCEMENTS:
- Add
archived
argument togitlab_project
(#148) - Add
managed
argument togitlab_project_cluster
(#137)
FEATURES:
- New Datasource:
gitlab_group
(#129)
This is the first release to support Terraform 0.12.
BACKWARDS INCOMPATIBILITIES:
- all: Previous versions of this provider silently removed state from state when
Gitlab returned an error 404. Now we error on this and you must reconciliate
the state (e.g.
terraform state rm
). We have done this because we can not make the difference between permission denied and resources removed outside of terraform (gitlab returns 404 in both cases) (#130)
FEATURES:
- New Resource:
gitlab_tag_protection
(#125)
ENHANCEMENTS:
- Add
container_registry_enabled
argument togitlab_project
(#115) - Add
shared_runners_enabled
argument togitlab_project
(#134 #104)
FEATURES:
ENHANCEMENTS:
- Support for request/response logging when >
DEBUG
severity is set (#93) - Datasource
gitlab_user
supports user_id, email lookup and return lots of new attributes (#102) - Resource
gitlab_deploy_key
can now be imported (#197) - Add
tags
attribute forgitlab_project
(#106)
BUGFIXES:
FEATURES:
- New Datasource:
gitlab_users
(#79) - New Resource:
gitlab_pipeline_trigger
(#82) - New Resource:
gitlab_project_cluster
(#87)
ENHANCEMENTS:
- Supports "No one" and "maintainer" permissions (#83)
gitlab_project.shared_with_groups
is now order-independent (#86)- add
merge_method
,only_allow_merge_if_*
,approvals_before_merge
parameters togitlab_project
(#72, #88)
FEATURES:
- New Resource:
gitlab_project_membership
- New Resource:
gitlab_group_membership
(#8) - New Resource:
gitlab_project_variable
(#47) - New Resource:
gitlab_group_variable
(#47)
BACKWARDS INCOMPATIBILITIES:
gitlab_project_membership
is not compatible with a previous unreleased version due to an id change resource will need to be reimported manually
e.g
terraform state rm gitlab_project_membership.foo
terraform import gitlab_project_membership.foo 12345:1337
BACKWARDS INCOMPATIBILITIES:
- This provider now uses the v4 api. It means that if you set up a custom API url, you need to update it to use the /api/v4 url. As a side effect, we no longer support Gitlab < 9.0. (#20)
- We now support Parent ID for
gitlab_groups
. However, due to a limitation in the gitlab API, changing a Parent ID requires destroying and recreating the group. Since previous versions of this provider did not support it, there are chances that terraform will try do delete all your nested group when you update to 1.0.0. A workaround to prevent this is to use theignore_changes
lifecycle parameter. (#28)
resource "gitlab_group" "nested_group" {
name = "bar-name-%d"
path = "bar-path-%d"
lifecycle {
ignore_changes = ["parent_id"]
}
}
FEATURES:
IMPROVEMENTS:
- Add
cacert_file
andinsecure
options to the provider. (#5) - Fix race conditions with
gitlab_project
deletion. (#19) - Add
parent_id
argument togitlab_group
. (#28) - Add support for
gitlab_project
import. (#30) - Add support for
gitlab_groups
import. (#31) - Add
path
argument forgitlab_project
. (#21) - Fix indempotency issue with
gitlab_deploy_key
and white spaces. (#34)
NOTES:
- Same functionality as that of Terraform 0.9.8. Repacked as part of Provider Splitout