Skip to content

Commit c72708b

Browse files
authored
Merge pull request #29 from mineiros-io/mariux/tf14
feat: Add support for Terraform v0.14.x
2 parents 5049860 + 7800ca3 commit c72708b

File tree

7 files changed

+19
-20
lines changed

7 files changed

+19
-20
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.3.0]
10+
### Added
11+
- Add support for Terraform v0.14.x
12+
913
## [0.2.0]
1014
### Added
1115
- Add `CHANGELOG.md`
@@ -46,9 +50,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4650
Team, Nested Team, Memberships, Team Repositories.
4751

4852
<!-- markdown-link-check-disable -->
49-
[Unreleased]: https://github.com/mineiros-io/terraform-github-team/compare/v0.2.0...HEAD
50-
[0.2.0]: https://github.com/mineiros-io/terraform-github-team/compare/v0.1.3...v0.2.0
53+
[Unreleased]: https://github.com/mineiros-io/terraform-github-team/compare/v0.3.0...HEAD
54+
[0.3.0]: https://github.com/mineiros-io/terraform-github-team/compare/v0.2.0...v0.3.0
5155
<!-- markdown-link-check-enable -->
56+
[0.2.0]: https://github.com/mineiros-io/terraform-github-team/compare/v0.1.3...v0.2.0
5257
[0.1.3]: https://github.com/mineiros-io/terraform-github-team/compare/v0.1.2...v0.1.3
5358
[0.1.2]: https://github.com/mineiros-io/terraform-github-team/compare/v0.1.1...v0.1.2
5459
[0.1.1]: https://github.com/mineiros-io/terraform-github-team/compare/v0.1.0...v0.1.1

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Set default shell to bash
22
SHELL := /bin/bash -o pipefail
33

4-
BUILD_TOOLS_VERSION ?= v0.6.1
4+
BUILD_TOOLS_VERSION ?= v0.7.0
55
BUILD_TOOLS_DOCKER_REPO ?= mineiros/build-tools
66
BUILD_TOOLS_DOCKER_IMAGE ?= ${BUILD_TOOLS_DOCKER_REPO}:${BUILD_TOOLS_VERSION}
77

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ and is compatible with the Terraform Github Provider v3 as well as v2.4 and abov
3232

3333
## Features
3434

35-
This module uses the [Terraform GitHub provider v2.4](https://github.com/terraform-providers/terraform-provider-github/releases)
36-
that supports the following resources:
35+
*This module supports Terraform v0.14, v0.13 as well as v0.12.9 and above
36+
and is compatible with the Terraform Github Provider v3 as well as v2.4 and above.*
37+
38+
This module supports the following resources:
3739

3840
- Team
3941
- Nested Team
@@ -45,7 +47,7 @@ that supports the following resources:
4547
```hcl
4648
module "team" {
4749
source = "mineiros-io/team/github"
48-
version = "~> 0.2.0"
50+
version = "~> 0.3.0"
4951
5052
name = "DevOps"
5153
description = "The DevOps Team"
@@ -209,7 +211,7 @@ Copyright &copy; 2020 [Mineiros GmbH][homepage]
209211
[badge-build]: https://github.com/mineiros-io/terraform-github-team/workflows/CI/CD%20Pipeline/badge.svg
210212
[badge-semver]: https://img.shields.io/github/v/tag/mineiros-io/terraform-github-team.svg?label=latest&sort=semver
211213
[badge-license]: https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg
212-
[badge-terraform]: https://img.shields.io/badge/terraform-0.13%20and%200.12.9+-623CE4.svg?logo=terraform
214+
[badge-terraform]: https://img.shields.io/badge/terraform-0.14%20|%200.13%20|%200.12.20+-623CE4.svg?logo=terraform
213215
[badge-slack]: https://img.shields.io/badge/slack-@mineiros--community-f32752.svg?logo=slack
214216
[build-status]: https://github.com/mineiros-io/terraform-github-team/actions
215217
[releases-github]: https://github.com/mineiros-io/terraform-github-team/releases

examples/github-team/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and push permissions to the other.
1919
```hcl
2020
module "team" {
2121
source = "mineiros-io/team/github"
22-
version = "~> 0.2.0"
22+
version = "~> 0.3.0"
2323
2424
name = "Engineering"
2525
description = "This team is created with terraform to test the terraformn-github-repository module."
@@ -39,7 +39,7 @@ module "team" {
3939
4040
module "child_team" {
4141
source = "mineiros-io/team/github"
42-
version = "~> 0.2.0"
42+
version = "~> 0.3.0"
4343
4444
name = "DevOps"
4545
parent_team_id = module.team.id

examples/github-team/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ resource "github_repository" "another_repository" {
3939

4040
module "team" {
4141
source = "mineiros-io/team/github"
42-
version = "~> 0.2.0"
42+
version = "~> 0.3.0"
4343

4444
name = "Engineering"
4545
description = "This team is created with terraform to test the terraformn-github-repository module."
@@ -59,7 +59,7 @@ module "team" {
5959

6060
module "child_team" {
6161
source = "mineiros-io/team/github"
62-
version = "~> 0.2.0"
62+
version = "~> 0.3.0"
6363

6464
name = "DevOps"
6565
parent_team_id = module.team.id

test/github_team_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77

88
"github.com/gruntwork-io/terratest/modules/random"
99
"github.com/gruntwork-io/terratest/modules/terraform"
10-
"gotest.tools/assert"
1110
)
1211

1312
var githubOrganization, githubToken string
@@ -48,11 +47,4 @@ func TestGithubTeam(t *testing.T) {
4847

4948
// This will run `terraform init` and `terraform apply` and fail the test if there are any errors
5049
terraform.InitAndApply(t, terraformOptions)
51-
52-
// Validate the names of the repositoriees
53-
assert.Equal(t, repositoryA, terraform.Output(t, terraformOptions, "first_repository_name"))
54-
assert.Equal(t, repositoryB, terraform.Output(t, terraformOptions, "second_repository_name"))
55-
56-
// Validate if the created teams name
57-
assert.Equal(t, teamName, terraform.Output(t, terraformOptions, "team_name"))
5850
}

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# ---------------------------------------------------------------------------------------------------------------------
44

55
terraform {
6-
required_version = ">= 0.12.20, < 0.14"
6+
required_version = ">= 0.12.20, < 0.15"
77

88
required_providers {
99
github = ">= 2.4, < 4.0"

0 commit comments

Comments
 (0)