Skip to content

Commit

Permalink
breaking(provider): migrate from tdabasinskas to datolabs-io (#166)
Browse files Browse the repository at this point in the history
This pull request includes several changes to update references from
`tdabasinskas` to `datolabs-io` and to add new dependencies. The most
important changes include updates to the `README.md`, `go.mod`, and
`CODEOWNERS` files, as well as changes in import paths and URLs.

Updates to references:

*
[`README.md`](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L3-R12):
Updated all references from `tdabasinskas` to `datolabs-io` for badges
and links.
*
[`CODEOWNERS`](diffhunk://#diff-fcf14c4b7b34fe7a11916195871ae66a59be87a395f28db73e345ebdc828085bL1-R1):
Changed ownership from `@tdabasinskas` to
`@datolabs-io/terraform-provider-backstage-maintainers`.

Dependency updates:

*
[`go.mod`](diffhunk://#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6L1-R11):
Added new dependencies `github.com/datolabs-io/go-backstage/v3` and
`github.com/hashicorp/go-retryablehttp`, and updated several existing
dependencies to newer versions.
[[1]](diffhunk://#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6L1-R11)
[[2]](diffhunk://#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6L18)
[[3]](diffhunk://#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6L36-R37)
[[4]](diffhunk://#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6L48)
[[5]](diffhunk://#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6L58-R58)
[[6]](diffhunk://#diff-33ef32bf6c23acb95f5902d7097b7a1d5128ca061167ec0716715b0b9eeaa5f6L81-R92)

Import path changes:

*
[`backstage/provider.go`](diffhunk://#diff-c315e3c9846b2781332ba9a2b97a547bb630a53036f4f1230fd3d542ea8fe064R13):
Updated import paths from `tdabasinskas` to `datolabs-io` for internal
transport and other dependencies.
[[1]](diffhunk://#diff-c315e3c9846b2781332ba9a2b97a547bb630a53036f4f1230fd3d542ea8fe064R13)
[[2]](diffhunk://#diff-c315e3c9846b2781332ba9a2b97a547bb630a53036f4f1230fd3d542ea8fe064L23)
*
[`main.go`](diffhunk://#diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261L10-R10):
Updated import path and provider address from `tdabasinskas` to
`datolabs-io`.
[[1]](diffhunk://#diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261L10-R10)
[[2]](diffhunk://#diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261L25-R25)

Documentation updates:

*
[`docs/index.md`](diffhunk://#diff-b4d68dc855d0f9476d3f2ee343853bd21bf82ea9960d0cf06661baa244439dd6L9-R9):
Updated URLs from `tdabasinskas` to `datolabs-io` for release
information and notes.
[[1]](diffhunk://#diff-b4d68dc855d0f9476d3f2ee343853bd21bf82ea9960d0cf06661baa244439dd6L9-R9)
[[2]](diffhunk://#diff-b4d68dc855d0f9476d3f2ee343853bd21bf82ea9960d0cf06661baa244439dd6L20-R20)
  • Loading branch information
tdabasinskas authored Nov 22, 2024
2 parents 2c80029 + d55d3cb commit a7ca881
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 49 deletions.
5 changes: 5 additions & 0 deletions .cspell/custom-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ jsondecode
tfplugindocs
retryablehttp
retryable
gock
stretchr
ghaction
covermode
coverprofile
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* text=auto eol=lf

go.sum linguist-generated=true
go.sum linguist-generated=true
docs/** linguist-generated=true
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @tdabasinskas
* @datolabs-io/terraform-provider-backstage-maintainers
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Terraform Provider for Backstage

[![Tests](https://github.com/tdabasinskas/terraform-provider-backstage/actions/workflows/test.yml/badge.svg)](https://github.com/tdabasinskas/terraform-provider-backstage/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/tdabasinskas/terraform-provider-backstage/branch/main/graph/badge.svg?token=1QSZTX0N2B)](https://codecov.io/gh/tdabasinskas/terraform-provider-backstage)
[![go-github release (latest SemVer)](https://img.shields.io/github/v/release/tdabasinskas/terraform-provider-backstage?sort=semver)](https://github.com/tdabasinskas/terraform-provider-backstage/releases)
[![registry](https://img.shields.io/static/v1?label=terraform&message=registry&color=blueviolet)](https://registry.terraform.io/providers/tdabasinskas/backstage/latest)
[![Tests](https://github.com/datolabs-io/terraform-provider-backstage/actions/workflows/test.yml/badge.svg)](https://github.com/datolabs-io/terraform-provider-backstage/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/datolabs-io/terraform-provider-backstage/branch/main/graph/badge.svg?token=1QSZTX0N2B)](https://codecov.io/gh/datolabs-io/terraform-provider-backstage)
[![go-github release (latest SemVer)](https://img.shields.io/github/v/release/datolabs-io/terraform-provider-backstage?sort=semver)](https://github.com/datolabs-io/terraform-provider-backstage/releases)
[![registry](https://img.shields.io/static/v1?label=terraform&message=registry&color=blueviolet)](https://registry.terraform.io/providers/datolabs-io/backstage/latest)

The [Backstage Provider](https://registry.terraform.io/providers/tdabasinskas/backstage/latest) allows [Terraform](https://terraform.io/) to manage [Backstage](https://backstage.io) resources.
The [Backstage Provider](https://registry.terraform.io/providers/datolabs-io/backstage/latest) allows [Terraform](https://terraform.io/) to manage [Backstage](https://backstage.io) resources.

## Documentation

Official documentation on how to use this provider can be found on the [Terraform Registry](https://registry.terraform.io/providers/tdabasinskas/backstage/latest).
Official documentation on how to use this provider can be found on the [Terraform Registry](https://registry.terraform.io/providers/datolabs-io/backstage/latest).
In case of specific questions, please raise a GitHub issue in this repository.

The remainder of this document will focus on the development aspects of the provider.
Expand Down
4 changes: 2 additions & 2 deletions backstage/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

"github.com/datolabs-io/go-backstage/v3"
"github.com/datolabs-io/terraform-provider-backstage/internal/transport"
"github.com/hashicorp/go-retryablehttp"
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
Expand All @@ -20,7 +21,6 @@ import (
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-log/tflog"
"github.com/tdabasinskas/terraform-provider-backstage/internal/transport"
)

var _ provider.Provider = &backstageProvider{}
Expand Down Expand Up @@ -72,7 +72,7 @@ func (p *backstageProvider) Schema(_ context.Context, _ provider.SchemaRequest,
"Use the navigation on the left to read about the available resources and data sources.\n\n To learn the basic of Terraform using this provider, " +
"follow hands-on [get started tutorials](https://learn.hashicorp.com/tutorials/terraform/infrastructure-as-code).\n\n" +
"Interested in the provider's latest features, or want to make sure you're up to date? Check out the " +
"[releases](https://github.com/tdabasinskas/terraform-provider-backstage/releases) for version information and release notes.",
"[releases](https://github.com/datolabs-io/terraform-provider-backstage/releases) for version information and release notes.",
Attributes: map[string]schema.Attribute{
"base_url": schema.StringAttribute{Optional: true, MarkdownDescription: descriptionProviderBaseURL, Validators: []validator.String{
stringvalidator.RegexMatches(regexp.MustCompile(patternURL), "must be a valid URL"),
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
module github.com/tdabasinskas/terraform-provider-backstage
module github.com/datolabs-io/terraform-provider-backstage

go 1.23

toolchain go1.23.1

require (
github.com/datolabs-io/go-backstage/v3 v3.0.0
github.com/h2non/gock v1.2.0
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
github.com/hashicorp/go-retryablehttp v0.7.7
github.com/hashicorp/terraform-plugin-docs v0.20.0
github.com/hashicorp/terraform-plugin-framework v1.13.0
github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0
Expand All @@ -15,7 +17,6 @@ require (
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
github.com/stretchr/testify v1.9.0
github.com/datolabs-io/go-backstage/v3 v3.0.0
)

require (
Expand All @@ -33,7 +34,7 @@ require (
github.com/bmatcuk/doublestar/v4 v4.7.1 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/color v1.17.0 // indirect
github.com/fatih/color v1.18.0 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.6.0 // indirect
Expand All @@ -45,7 +46,6 @@ require (
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.6.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/hashicorp/hc-install v0.9.0 // indirect
Expand All @@ -55,7 +55,7 @@ require (
github.com/hashicorp/terraform-json v0.23.0 // indirect
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/hashicorp/yamux v0.1.2 // indirect
github.com/huandu/xstrings v1.3.3 // indirect
github.com/imdario/mergo v0.3.15 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand All @@ -78,18 +78,18 @@ require (
github.com/yuin/goldmark-meta v1.1.0 // indirect
github.com/zclconf/go-cty v1.15.0 // indirect
go.abhg.dev/goldmark/frontmatter v0.2.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.19.0 // indirect
golang.org/x/net v0.31.0 // indirect
golang.org/x/sync v0.9.0 // indirect
golang.org/x/sys v0.27.0 // indirect
golang.org/x/text v0.20.0 // indirect
golang.org/x/tools v0.22.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.35.1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241118233622-e639e219e697 // indirect
google.golang.org/grpc v1.68.0 // indirect
google.golang.org/protobuf v1.35.2 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
42 changes: 20 additions & 22 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/hashicorp/terraform-plugin-framework/providerserver"

provider "github.com/tdabasinskas/terraform-provider-backstage/backstage"
provider "github.com/datolabs-io/terraform-provider-backstage/backstage"
)

//go:generate terraform fmt -recursive ./examples/
Expand All @@ -22,7 +22,7 @@ func main() {
flag.Parse()

opts := providerserver.ServeOpts{
Address: "registry.terraform.io/tdabasinskas/backstage",
Address: "registry.terraform.io/datolabs-io/backstage",
Debug: debug,
}

Expand Down

0 comments on commit a7ca881

Please sign in to comment.