Repository: crossplane-contrib/provider-terraform
Pull request #2 (2021-07-02 21:18:51)

Bump Terraform to v1.0.1
<!--
Thank you for helping to improve Crossplane!

Please read through https://git.io/fj2m9 if this is your first time opening a
Crossplane pull request. Find us in https://slack.crossplane.io/messages/dev if
you need any help contributing.
-->

### Description of your changes

<!--
Briefly describe what this pull request does. Be sure to direct your reviewers'
attention to anything that needs special consideration.

We love pull requests that resolve an open Crossplane issue. If yours does, you
can uncomment the below line to indicate which issue your PR fixes, for example
"Fixes #500":

-->
We were previously using v0.14.x. The Terraform changelog and my testing indicates there's no incompatible changes between the two versions (e.g. CLI flags) as far as we're concerned.

I have:

- [x] Read and followed Crossplane's [contribution process].
- [x] Run `make reviewable test` to ensure this PR is ready for review.

### How has this code been tested

<!--
Before reviewers can be confident in the correctness of this pull request, it
needs to tested and shown to be correct. Briefly describe the testing that has
already been done or which is planned for this change.
-->

[contribution process]: https://git.io/fj2m9

I've used the inline example to spin up and delete a bucket.


Patch:
diff --git a/Makefile b/Makefile
index 9d6657a..ccb43e0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # ====================================================================================
 # Setup Project
 PROJECT_NAME := provider-terraform
-PROJECT_REPO := github.com/crossplane-contrib/$(PROJECT_NAME)
+PROJECT_REPO := github.com/upbound/$(PROJECT_NAME)
 
 PLATFORMS ?= linux_amd64 linux_arm64
 -include build/makelib/common.mk
@@ -22,7 +22,7 @@ GO111MODULE = on
 -include build/makelib/k8s_tools.mk
 
 # Setup Images
-DOCKER_REGISTRY ?= crossplane
+DOCKER_REGISTRY ?= upbound
 IMAGES = $(PROJECT_NAME) $(PROJECT_NAME)-controller
 -include build/makelib/image.mk
 
diff --git a/apis/terraform.go b/apis/terraform.go
index 5aec0e8..cd80f2f 100644
--- a/apis/terraform.go
+++ b/apis/terraform.go
@@ -20,7 +20,7 @@ package apis
 import (
 	"k8s.io/apimachinery/pkg/runtime"
 
-	"github.com/crossplane-contrib/provider-terraform/apis/v1alpha1"
+	"github.com/upbound/provider-terraform/apis/v1alpha1"
 )
 
 func init() {
diff --git a/cluster/images/provider-terraform-controller/Makefile b/cluster/images/provider-terraform-controller/Makefile
index 6db10fd..67e7b5a 100755
--- a/cluster/images/provider-terraform-controller/Makefile
+++ b/cluster/images/provider-terraform-controller/Makefile
@@ -6,7 +6,7 @@ include ../../../build/makelib/common.mk
 
 # ====================================================================================
 #  Options
-OSBASEIMAGE = hashicorp/terraform:0.14.7
+OSBASEIMAGE = hashicorp/terraform:1.0.1
 IMAGE = $(BUILD_REGISTRY)/provider-terraform-controller-$(ARCH)
 include ../../../build/makelib/image.mk
 
diff --git a/cluster/images/provider-terraform/Makefile b/cluster/images/provider-terraform/Makefile
index 734f0ab..3485654 100644
--- a/cluster/images/provider-terraform/Makefile
+++ b/cluster/images/provider-terraform/Makefile
@@ -6,7 +6,7 @@ include ../../../build/makelib/common.mk
 
 # ====================================================================================
 #  Options
-IMAGE = $(BUILD_REGISTRY)/provider-sql-$(ARCH)
+IMAGE = $(BUILD_REGISTRY)/provider-terraform-$(ARCH)
 OSBASEIMAGE = scratch
 include ../../../build/makelib/image.mk
 
diff --git a/cmd/provider/main.go b/cmd/provider/main.go
index a9e52eb..d9af710 100644
--- a/cmd/provider/main.go
+++ b/cmd/provider/main.go
@@ -27,8 +27,8 @@ import (
 	"github.com/crossplane/crossplane-runtime/pkg/logging"
 	"github.com/crossplane/crossplane-runtime/pkg/ratelimiter"
 
-	"github.com/crossplane-contrib/provider-terraform/apis"
-	"github.com/crossplane-contrib/provider-terraform/internal/controller"
+	"github.com/upbound/provider-terraform/apis"
+	"github.com/upbound/provider-terraform/internal/controller"
 )
 
 func main() {
diff --git a/go.mod b/go.mod
index e6cbb4b..668ba5c 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
-module github.com/crossplane-contrib/provider-terraform
+module github.com/upbound/provider-terraform
 
-go 1.16
+go 1.13
 
 require (
 	github.com/crossplane/crossplane-runtime v0.13.0
diff --git a/internal/controller/config/config.go b/internal/controller/config/config.go
index 41c81ba..96538bd 100644
--- a/internal/controller/config/config.go
+++ b/internal/controller/config/config.go
@@ -28,7 +28,7 @@ import (
 	"github.com/crossplane/crossplane-runtime/pkg/reconciler/providerconfig"
 	"github.com/crossplane/crossplane-runtime/pkg/resource"
 
-	"github.com/crossplane-contrib/provider-terraform/apis/v1alpha1"
+	"github.com/upbound/provider-terraform/apis/v1alpha1"
 )
 
 // Setup adds a controller that reconciles ProviderConfigs by accounting for
diff --git a/internal/controller/template.go b/internal/controller/template.go
index 8d7fdfe..54eeead 100644
--- a/internal/controller/template.go
+++ b/internal/controller/template.go
@@ -22,8 +22,8 @@ import (
 
 	"github.com/crossplane/crossplane-runtime/pkg/logging"
 
-	"github.com/crossplane-contrib/provider-terraform/internal/controller/config"
-	"github.com/crossplane-contrib/provider-terraform/internal/controller/workspace"
+	"github.com/upbound/provider-terraform/internal/controller/config"
+	"github.com/upbound/provider-terraform/internal/controller/workspace"
 )
 
 // Setup creates all terraform controllers with the supplied logger and adds them to
diff --git a/internal/controller/workspace/workspace.go b/internal/controller/workspace/workspace.go
index f48152a..355c1bc 100644
--- a/internal/controller/workspace/workspace.go
+++ b/internal/controller/workspace/workspace.go
@@ -39,8 +39,8 @@ import (
 	"github.com/crossplane/crossplane-runtime/pkg/reconciler/managed"
 	"github.com/crossplane/crossplane-runtime/pkg/resource"
 
-	"github.com/crossplane-contrib/provider-terraform/apis/v1alpha1"
-	"github.com/crossplane-contrib/provider-terraform/internal/terraform"
+	"github.com/upbound/provider-terraform/apis/v1alpha1"
+	"github.com/upbound/provider-terraform/internal/terraform"
 )
 
 const (


Test patch:
diff --git a/internal/controller/workspace/workspace_test.go b/internal/controller/workspace/workspace_test.go
index fe5400d..32c5818 100644
--- a/internal/controller/workspace/workspace_test.go
+++ b/internal/controller/workspace/workspace_test.go
@@ -35,8 +35,8 @@ import (
 	"github.com/crossplane/crossplane-runtime/pkg/resource"
 	"github.com/crossplane/crossplane-runtime/pkg/test"
 
-	"github.com/crossplane-contrib/provider-terraform/apis/v1alpha1"
-	"github.com/crossplane-contrib/provider-terraform/internal/terraform"
+	"github.com/upbound/provider-terraform/apis/v1alpha1"
+	"github.com/upbound/provider-terraform/internal/terraform"
 )
 
 type ErrFs struct {