Skip to content

Commit

Permalink
Upgrade terraform-provider-port-labs to v1.5.0 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirsegev authored Aug 24, 2023
1 parent 58419f2 commit ffcd030
Show file tree
Hide file tree
Showing 17 changed files with 1,626 additions and 3 deletions.
7 changes: 7 additions & 0 deletions provider/cmd/pulumi-resource-port/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"port:index/action:Action": "port_action",
"port:index/blueprint:Blueprint": "port_blueprint",
"port:index/entity:Entity": "port_entity",
"port:index/scorecard:Scorecard": "port_scorecard",
"port:index/webhook:Webhook": "port_webhook"
},
"renamedProperties": {
Expand Down Expand Up @@ -188,6 +189,12 @@
"updatedAt": "updated_at",
"updatedBy": "updated_by"
},
"port:index/scorecard:Scorecard": {
"createdAt": "created_at",
"createdBy": "created_by",
"updatedAt": "updated_at",
"updatedBy": "updated_by"
},
"port:index/webhook:Webhook": {
"createdAt": "created_at",
"createdBy": "created_by",
Expand Down
176 changes: 176 additions & 0 deletions provider/cmd/pulumi-resource-port/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,65 @@
},
"type": "object"
},
"port:index/ScorecardRule:ScorecardRule": {
"properties": {
"identifier": {
"type": "string"
},
"level": {
"type": "string"
},
"query": {
"$ref": "#/types/port:index/ScorecardRuleQuery:ScorecardRuleQuery"
},
"title": {
"type": "string"
}
},
"type": "object",
"required": [
"identifier",
"level",
"query",
"title"
]
},
"port:index/ScorecardRuleQuery:ScorecardRuleQuery": {
"properties": {
"combinator": {
"type": "string"
},
"conditions": {
"type": "array",
"items": {
"$ref": "#/types/port:index/ScorecardRuleQueryCondition:ScorecardRuleQueryCondition"
}
}
},
"type": "object",
"required": [
"combinator",
"conditions"
]
},
"port:index/ScorecardRuleQueryCondition:ScorecardRuleQueryCondition": {
"properties": {
"operator": {
"type": "string"
},
"property": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object",
"required": [
"operator",
"property"
]
},
"port:index/WebhookMapping:WebhookMapping": {
"properties": {
"blueprint": {
Expand Down Expand Up @@ -2008,6 +2067,123 @@
"type": "object"
}
},
"port:index/scorecard:Scorecard": {
"properties": {
"blueprint": {
"type": "string",
"description": "The blueprint of the scorecard\n"
},
"createdAt": {
"type": "string",
"description": "The creation date of the scorecard\n"
},
"createdBy": {
"type": "string",
"description": "The creator of the scorecard\n"
},
"identifier": {
"type": "string",
"description": "The identifier of the scorecard\n"
},
"rules": {
"type": "array",
"items": {
"$ref": "#/types/port:index/ScorecardRule:ScorecardRule"
},
"description": "The rules of the scorecard\n"
},
"title": {
"type": "string",
"description": "The title of the scorecard\n"
},
"updatedAt": {
"type": "string",
"description": "The last update date of the scorecard\n"
},
"updatedBy": {
"type": "string",
"description": "The last updater of the scorecard\n"
}
},
"required": [
"blueprint",
"createdAt",
"createdBy",
"identifier",
"rules",
"title",
"updatedAt",
"updatedBy"
],
"inputProperties": {
"blueprint": {
"type": "string",
"description": "The blueprint of the scorecard\n"
},
"identifier": {
"type": "string",
"description": "The identifier of the scorecard\n"
},
"rules": {
"type": "array",
"items": {
"$ref": "#/types/port:index/ScorecardRule:ScorecardRule"
},
"description": "The rules of the scorecard\n"
},
"title": {
"type": "string",
"description": "The title of the scorecard\n"
}
},
"requiredInputs": [
"blueprint",
"identifier",
"rules",
"title"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering Scorecard resources.\n",
"properties": {
"blueprint": {
"type": "string",
"description": "The blueprint of the scorecard\n"
},
"createdAt": {
"type": "string",
"description": "The creation date of the scorecard\n"
},
"createdBy": {
"type": "string",
"description": "The creator of the scorecard\n"
},
"identifier": {
"type": "string",
"description": "The identifier of the scorecard\n"
},
"rules": {
"type": "array",
"items": {
"$ref": "#/types/port:index/ScorecardRule:ScorecardRule"
},
"description": "The rules of the scorecard\n"
},
"title": {
"type": "string",
"description": "The title of the scorecard\n"
},
"updatedAt": {
"type": "string",
"description": "The last update date of the scorecard\n"
},
"updatedBy": {
"type": "string",
"description": "The last updater of the scorecard\n"
}
},
"type": "object"
}
},
"port:index/webhook:Webhook": {
"properties": {
"createdAt": {
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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.4.2
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
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1582,8 +1582,8 @@ github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk=
github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/port-labs/terraform-provider-port-labs v1.4.2 h1:cF3FvS9ZGZBPLX5wuWkGKetmq9qZxB/s/oh3ozteLOc=
github.com/port-labs/terraform-provider-port-labs v1.4.2/go.mod h1:pLn48/X30XZIrW3gvUM1rkVjAZkO7ZFjegc0x4hFdtc=
github.com/port-labs/terraform-provider-port-labs v1.5.0 h1:Mt9DHaTKTQJsVZujThO4aBAGfnaa6sCVJ3WJzk6Gy8Q=
github.com/port-labs/terraform-provider-port-labs v1.5.0/go.mod h1:pLn48/X30XZIrW3gvUM1rkVjAZkO7ZFjegc0x4hFdtc=
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo=
github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
Expand Down
1 change: 1 addition & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func Provider() tfbridge.ProviderInfo {
"port_blueprint": {Tok: portResource(mainMod, "Blueprint")},
"port_entity": {Tok: portResource(mainMod, "Entity")},
"port_webhook": {Tok: portResource(mainMod, "Webhook")},
"port_scorecard": {Tok: portResource(mainMod, "Scorecard")},
},
DataSources: map[string]*tfbridge.DataSourceInfo{
// Map each resource in the Terraform provider to a Pulumi function. An example
Expand Down
7 changes: 7 additions & 0 deletions sdk/go/port/init.go

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

Loading

0 comments on commit ffcd030

Please sign in to comment.