Commits on Source (38)
-
Matt authored
fix: Update namespace ID only in Read operation, using ID for obtaining information from API and updating, if it differs from name
-
Matt authored
-
Matt authored
-
Matt authored
-
Matt authored
-
Matt authored
-
semantic-release-bot authored
# [1.1.0](v1.0.0...v1.1.0) (2024-02-03) ### Bug Fixes * Add validation to ensure that either name or id is passed to git_provider data source ([028ef7a7](028ef7a7)), closes [#2](#2) * Avoid unknown ID values during plan ([8eff4632](8eff4632)), closes [#2](#2) * Correctly mark object as deleted in READ when API returns 404 ([fe5b91ea](fe5b91ea)), closes [#2](#2) * Only update attributes during Read if the value has actually changed, to avoid showing plan changes ([fcb74ecd](fcb74ecd)), closes [#2](#2) * Update namespace ID only in Read operation, using ID for obtaining information from API and updating, if it differs from name ([901a3604](901a3604)) ### Features * Add data source for git_provider. Update ID type of git provider to int64 ([b5799535](b5799535)), closes [#2](#2) * Add module resource ([a54c3c02](a54c3c02)), closes [#2](#2) * Add terrareg_git_providers data source for obtaining all git providers ([a34887d4](a34887d4)), closes [#2](#2)
Showing
- .github/workflows/test.yml 1 addition, 0 deletions.github/workflows/test.yml
- .gitlab-ci.yml 1 addition, 0 deletions.gitlab-ci.yml
- CHANGELOG.md 18 additions, 0 deletionsCHANGELOG.md
- GNUmakefile 12 additions, 0 deletionsGNUmakefile
- README.md 1 addition, 1 deletionREADME.md
- examples/data-sources/terrareg_git_provider/data-source.tf 7 additions, 0 deletionsexamples/data-sources/terrareg_git_provider/data-source.tf
- examples/data-sources/terrareg_git_providers/data-source.tf 1 addition, 0 deletionsexamples/data-sources/terrareg_git_providers/data-source.tf
- examples/resources/terrareg_module/resource.tf 17 additions, 0 deletionsexamples/resources/terrareg_module/resource.tf
- go.mod 1 addition, 0 deletionsgo.mod
- go.sum 2 additions, 0 deletionsgo.sum
- internal/provider/git_provider_data_source.go 132 additions, 0 deletionsinternal/provider/git_provider_data_source.go
- internal/provider/git_provider_data_source_test.go 104 additions, 0 deletionsinternal/provider/git_provider_data_source_test.go
- internal/provider/git_providers_data_source.go 102 additions, 0 deletionsinternal/provider/git_providers_data_source.go
- internal/provider/git_providers_data_source_test.go 32 additions, 0 deletionsinternal/provider/git_providers_data_source_test.go
- internal/provider/module_resource.go 351 additions, 0 deletionsinternal/provider/module_resource.go
- internal/provider/module_resource_test.go 177 additions, 0 deletionsinternal/provider/module_resource_test.go
- internal/provider/namespace_resource.go 14 additions, 6 deletionsinternal/provider/namespace_resource.go
- internal/provider/provider.go 3 additions, 1 deletioninternal/provider/provider.go
- internal/terrareg/client.go 10 additions, 0 deletionsinternal/terrareg/client.go
- internal/terrareg/git_provider.go 44 additions, 0 deletionsinternal/terrareg/git_provider.go
... | ... | @@ -5,6 +5,7 @@ go 1.20 |
require ( | ||
github.com/hashicorp/terraform-plugin-docs v0.16.0 | ||
github.com/hashicorp/terraform-plugin-framework v1.5.0 | ||
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 | ||
github.com/hashicorp/terraform-plugin-go v0.20.0 | ||
github.com/hashicorp/terraform-plugin-log v0.9.0 | ||
github.com/hashicorp/terraform-plugin-testing v1.6.0 | ||
... | ... |
... | ... | @@ -88,6 +88,8 @@ github.com/hashicorp/terraform-plugin-docs v0.16.0 h1:UmxFr3AScl6Wged84jndJIfFcc |
github.com/hashicorp/terraform-plugin-docs v0.16.0/go.mod h1:M3ZrlKBJAbPMtNOPwHicGi1c+hZUh7/g0ifT/z7TVfA= | ||
github.com/hashicorp/terraform-plugin-framework v1.5.0 h1:8kcvqJs/x6QyOFSdeAyEgsenVOUeC/IyKpi2ul4fjTg= | ||
github.com/hashicorp/terraform-plugin-framework v1.5.0/go.mod h1:6waavirukIlFpVpthbGd2PUNYaFedB0RwW3MDzJ/rtc= | ||
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= | ||
github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= | ||
github.com/hashicorp/terraform-plugin-go v0.20.0 h1:oqvoUlL+2EUbKNsJbIt3zqqZ7wi6lzn4ufkn/UA51xQ= | ||
github.com/hashicorp/terraform-plugin-go v0.20.0/go.mod h1:Rr8LBdMlY53a3Z/HpP+ZU3/xCDqtKNCkeI9qOyT10QE= | ||
github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= | ||
... | ... |
internal/provider/module_resource.go
0 → 100644
internal/provider/module_resource_test.go
0 → 100644
internal/terrareg/git_provider.go
0 → 100644