Skip to content

Commit

Permalink
Upgrade terraform-provider-ns1 to v2.3.0 (#482)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-ns1`.

---

- Upgrading terraform-provider-ns1 from 2.2.2  to 2.3.0.
	Fixes #475
  • Loading branch information
iwahbe authored Jun 24, 2024
1 parent 54e3454 commit 655dbff
Show file tree
Hide file tree
Showing 24 changed files with 4,467 additions and 13 deletions.
13 changes: 13 additions & 0 deletions provider/cmd/pulumi-resource-ns1/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@
}
}
},
"ns1_redirect": {
"current": "ns1:index/redirect:Redirect",
"majorVersion": 3,
"fields": {
"tags": {
"maxItemsOne": false
}
}
},
"ns1_redirect_certificate": {
"current": "ns1:index/redirectCertificate:RedirectCertificate",
"majorVersion": 3
},
"ns1_subnet": {
"current": "ns1:index/subnet:Subnet",
"majorVersion": 3
Expand Down
226 changes: 226 additions & 0 deletions provider/cmd/pulumi-resource-ns1/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect
google.golang.org/grpc v1.63.2 // indirect
google.golang.org/protobuf v1.34.0 // indirect
gopkg.in/ns1/ns1-go.v2 v2.9.1 // indirect
gopkg.in/ns1/ns1-go.v2 v2.11.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/frand v1.4.2 // indirect
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2969,8 +2969,8 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EV
gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/ns1/ns1-go.v2 v2.9.1 h1:3/QYzUazRCSE49d3sh1Q+X7IrDp/I7OqR/M7dKA0Oks=
gopkg.in/ns1/ns1-go.v2 v2.9.1/go.mod h1:pfaU0vECVP7DIOr453z03HXS6dFJpXdNRwOyRzwmPSc=
gopkg.in/ns1/ns1-go.v2 v2.11.0 h1:T+rMHhQsQ58bSgGZwX8INxU0sjDO7cWieX9xPr/UEY4=
gopkg.in/ns1/ns1-go.v2 v2.11.0/go.mod h1:pfaU0vECVP7DIOr453z03HXS6dFJpXdNRwOyRzwmPSc=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
Expand Down
17 changes: 8 additions & 9 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package ns1

import (
"fmt"
"path/filepath"
"path"

// Allow metadata embedding
_ "embed"
Expand Down Expand Up @@ -71,9 +71,7 @@ func Provider() tfbridge.ProviderInfo {
"ns1_zone": {
Tok: makeResource(mainMod, "Zone"),
Fields: map[string]*tfbridge.SchemaInfo{
"zone": {
CSharpName: "ZoneName",
},
"zone": {CSharpName: "ZoneName"},
},
},
"ns1_monitoringjob": {Tok: makeResource(mainMod, "MonitoringJob")},
Expand All @@ -85,10 +83,11 @@ func Provider() tfbridge.ProviderInfo {
Tok: makeResource(mainMod, "PulsarJob"),
Docs: &tfbridge.DocInfo{AllowMissing: true},
},
"ns1_tsigkey": {Tok: makeResource(mainMod, "Tsigkey")},
"ns1_subnet": {Docs: &tfbridge.DocInfo{AllowMissing: true}},
"ns1_dnsview": {Docs: &tfbridge.DocInfo{AllowMissing: true}},
"ns1_dataset": {Docs: &tfbridge.DocInfo{AllowMissing: true}},
"ns1_tsigkey": {Tok: makeResource(mainMod, "Tsigkey")},
"ns1_subnet": {Docs: &tfbridge.DocInfo{AllowMissing: true}},
"ns1_dnsview": {Docs: &tfbridge.DocInfo{AllowMissing: true}},
"ns1_dataset": {Docs: &tfbridge.DocInfo{AllowMissing: true}},
"ns1_redirect_certificate": {Docs: &tfbridge.DocInfo{AllowMissing: true}},
},
DataSources: map[string]*tfbridge.DataSourceInfo{
"ns1_dnssec": {Tok: makeDataSource(mainMod, "getDNSSec")},
Expand All @@ -104,7 +103,7 @@ func Provider() tfbridge.ProviderInfo {
RespectSchemaVersion: true,
},
Golang: &tfbridge.GolangInfo{
ImportBasePath: filepath.Join(
ImportBasePath: path.Join(
fmt.Sprintf("github.com/pulumi/pulumi-%[1]s/sdk/", mainPkg),
tfbridge.GetModuleMajorVersion(version.Version),
"go",
Expand Down
Loading

0 comments on commit 655dbff

Please sign in to comment.