Repository: crossplane-contrib/provider-terraform
Pull request #1 (2021-07-02 19:27:17)

Migrate repository to crossplane-contrib
<!--
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'd like to open source this repo that we built experimentally inside Upbound. This commit updates the various import paths and plumbing to move things from the upbound org to the crossplane-contrib org.

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

Just by `make reviewable test` for now since it's a simple find and replace.


Patch:
diff --git a/Makefile b/Makefile
index ccb43e0..9d6657a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # ====================================================================================
 # Setup Project
 PROJECT_NAME := provider-terraform
-PROJECT_REPO := github.com/upbound/$(PROJECT_NAME)
+PROJECT_REPO := github.com/crossplane-contrib/$(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 ?= upbound
+DOCKER_REGISTRY ?= crossplane
 IMAGES = $(PROJECT_NAME) $(PROJECT_NAME)-controller
 -include build/makelib/image.mk
 
diff --git a/apis/terraform.go b/apis/terraform.go
index cd80f2f..5aec0e8 100644
--- a/apis/terraform.go
+++ b/apis/terraform.go
@@ -20,7 +20,7 @@ package apis
 import (
 	"k8s.io/apimachinery/pkg/runtime"
 
-	"github.com/upbound/provider-terraform/apis/v1alpha1"
+	"github.com/crossplane-contrib/provider-terraform/apis/v1alpha1"
 )
 
 func init() {
diff --git a/cmd/provider/main.go b/cmd/provider/main.go
index d9af710..a9e52eb 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/upbound/provider-terraform/apis"
-	"github.com/upbound/provider-terraform/internal/controller"
+	"github.com/crossplane-contrib/provider-terraform/apis"
+	"github.com/crossplane-contrib/provider-terraform/internal/controller"
 )
 
 func main() {
diff --git a/go.mod b/go.mod
index 668ba5c..e6cbb4b 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
-module github.com/upbound/provider-terraform
+module github.com/crossplane-contrib/provider-terraform
 
-go 1.13
+go 1.16
 
 require (
 	github.com/crossplane/crossplane-runtime v0.13.0
diff --git a/internal/controller/config/config.go b/internal/controller/config/config.go
index 96538bd..41c81ba 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/upbound/provider-terraform/apis/v1alpha1"
+	"github.com/crossplane-contrib/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 54eeead..8d7fdfe 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/upbound/provider-terraform/internal/controller/config"
-	"github.com/upbound/provider-terraform/internal/controller/workspace"
+	"github.com/crossplane-contrib/provider-terraform/internal/controller/config"
+	"github.com/crossplane-contrib/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 355c1bc..f48152a 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/upbound/provider-terraform/apis/v1alpha1"
-	"github.com/upbound/provider-terraform/internal/terraform"
+	"github.com/crossplane-contrib/provider-terraform/apis/v1alpha1"
+	"github.com/crossplane-contrib/provider-terraform/internal/terraform"
 )
 
 const (


Test patch:
diff --git a/internal/controller/workspace/workspace_test.go b/internal/controller/workspace/workspace_test.go
index 32c5818..fe5400d 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/upbound/provider-terraform/apis/v1alpha1"
-	"github.com/upbound/provider-terraform/internal/terraform"
+	"github.com/crossplane-contrib/provider-terraform/apis/v1alpha1"
+	"github.com/crossplane-contrib/provider-terraform/internal/terraform"
 )
 
 type ErrFs struct {