Skip to content

Commit

Permalink
Upgrade terraform provider port labs to v1.6.0 (#83)
Browse files Browse the repository at this point in the history
* make tfgen

* make tfgen

* Restore install pulumi plugin

* fix: breaking change in bridged provider gen.

---------

Co-authored-by: Engin Diri <[email protected]>
  • Loading branch information
dvirsegev and dirien authored Sep 14, 2023
1 parent 2c6fd31 commit 87c349e
Show file tree
Hide file tree
Showing 25 changed files with 2,526 additions and 86 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ build_nodejs:: install_plugins tfgen # build the node sdk
cd sdk/nodejs/ && \
yarn install && \
yarn run tsc && \
cp -R scripts/ bin && \
cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \
cp ../../README.md ../../LICENSE package.json yarn.lock ./bin/ && \
sed -i.bak -e "s/\$${VERSION}/$(VERSION)/g" ./bin/package.json

build_python:: PYPI_VERSION := $(shell pulumictl get version --language python)
Expand Down
6 changes: 6 additions & 0 deletions provider/cmd/pulumi-resource-port/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"port:index/blueprint:Blueprint": "port_blueprint",
"port:index/entity:Entity": "port_entity",
"port:index/scorecard:Scorecard": "port_scorecard",
"port:index/team:Team": "port_team",
"port:index/webhook:Webhook": "port_webhook"
},
"renamedProperties": {
Expand Down Expand Up @@ -195,6 +196,11 @@
"updatedAt": "updated_at",
"updatedBy": "updated_by"
},
"port:index/team:Team": {
"createdAt": "created_at",
"providerName": "provider_name",
"updatedAt": "updated_at"
},
"port:index/webhook:Webhook": {
"createdAt": "created_at",
"createdBy": "created_by",
Expand Down
90 changes: 90 additions & 0 deletions provider/cmd/pulumi-resource-port/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2184,6 +2184,96 @@
"type": "object"
}
},
"port:index/team:Team": {
"properties": {
"createdAt": {
"type": "string",
"description": "The creation date of the team\n"
},
"description": {
"type": "string",
"description": "The description of the team\n"
},
"name": {
"type": "string",
"description": "The name of the team\n"
},
"providerName": {
"type": "string",
"description": "The provider of the team\n"
},
"updatedAt": {
"type": "string",
"description": "The last update date of the team\n"
},
"users": {
"type": "array",
"items": {
"type": "string"
},
"description": "The users of the team\n"
}
},
"required": [
"createdAt",
"name",
"providerName",
"updatedAt"
],
"inputProperties": {
"description": {
"type": "string",
"description": "The description of the team\n"
},
"name": {
"type": "string",
"description": "The name of the team\n"
},
"users": {
"type": "array",
"items": {
"type": "string"
},
"description": "The users of the team\n"
}
},
"requiredInputs": [
"name"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering Team resources.\n",
"properties": {
"createdAt": {
"type": "string",
"description": "The creation date of the team\n"
},
"description": {
"type": "string",
"description": "The description of the team\n"
},
"name": {
"type": "string",
"description": "The name of the team\n"
},
"providerName": {
"type": "string",
"description": "The provider of the team\n"
},
"updatedAt": {
"type": "string",
"description": "The last update date of the team\n"
},
"users": {
"type": "array",
"items": {
"type": "string"
},
"description": "The users of the team\n"
}
},
"type": "object"
}
},
"port:index/webhook:Webhook": {
"properties": {
"createdAt": {
Expand Down
29 changes: 20 additions & 9 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ go 1.20
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20230327102345-3fa930f86570

require (
github.com/port-labs/terraform-provider-port-labs v1.5.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.15.2
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0
github.com/pulumi/pulumi/sdk/v3 v3.77.1
github.com/port-labs/terraform-provider-port-labs v1.6.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.16.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.59.0
github.com/pulumi/pulumi/sdk/v3 v3.82.1
)

require (
Expand Down Expand Up @@ -51,6 +51,7 @@ require (
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/armon/go-metrics v0.4.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aws/aws-sdk-go v1.44.298 // indirect
github.com/aws/aws-sdk-go-v2 v1.17.3 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3 // indirect
Expand All @@ -71,16 +72,21 @@ require (
github.com/aws/aws-sdk-go-v2/service/sso v1.11.13 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.16.10 // indirect
github.com/aws/smithy-go v1.13.5 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
github.com/charmbracelet/bubbles v0.16.1 // indirect
github.com/charmbracelet/bubbletea v0.24.2 // indirect
github.com/charmbracelet/lipgloss v0.7.1 // indirect
github.com/cheggaaa/pb v1.0.29 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/djherbis/times v1.5.0 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/ettle/strcase v0.1.1 // indirect
Expand Down Expand Up @@ -150,9 +156,11 @@ require (
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.15.11 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/mitchellh/cli v1.1.5 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
Expand All @@ -165,7 +173,10 @@ require (
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.1 // indirect
github.com/natefinch/atomic v1.0.1 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/opentracing/basictracer-go v1.1.0 // indirect
Expand All @@ -178,10 +189,10 @@ require (
github.com/pkg/term v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/pulumi/pulumi-java/pkg v0.9.4 // indirect
github.com/pulumi/pulumi-java/pkg v0.9.6 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect
github.com/pulumi/pulumi-yaml v1.1.1 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.77.1 // indirect
github.com/pulumi/pulumi-yaml v1.2.2 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.82.1 // indirect
github.com/pulumi/schema-tools v0.1.2 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
Expand Down
Loading

0 comments on commit 87c349e

Please sign in to comment.