Skip to content

Commit

Permalink
feat: update pulumi-terraform-bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
muhlba91 committed Nov 25, 2024
1 parent 221eec8 commit 8ce3feb
Show file tree
Hide file tree
Showing 54 changed files with 150 additions and 163 deletions.
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-proxmoxve/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
_ "embed"

proxmoxve "github.com/muhlba91/pulumi-proxmoxve/provider"
"github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/pf/tfbridge"
)

//go:embed schema-embed.json
Expand Down
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-proxmoxve/schema-embed.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions provider/cmd/pulumi-resource-proxmoxve/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/cmd/pulumi-tfgen-proxmoxve/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package main

import (
proxmoxve "github.com/muhlba91/pulumi-proxmoxve/provider"
"github.com/pulumi/pulumi-terraform-bridge/pf/tfgen"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/pf/tfgen"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraf
require (
github.com/bpg/terraform-provider-proxmox v0.67.1
github.com/ettle/strcase v0.2.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.48.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0
github.com/pulumi/pulumi/sdk/v3 v3.141.0
)
Expand Down Expand Up @@ -50,6 +49,7 @@ require (
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/frankban/quicktest v1.14.4 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-git/go-git/v5 v5.12.0 // indirect
Expand Down Expand Up @@ -154,6 +154,7 @@ require (
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/teekennedy/goldmark-markdown v0.3.0 // indirect
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
Expand Down
14 changes: 0 additions & 14 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1914,28 +1914,14 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob
github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY=
github.com/pulumi/providertest v0.1.3 h1:GpNKRy/haNjRHiUA9bi4diU4Op2zf3axYXbga5AepHg=
github.com/pulumi/providertest v0.1.3/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0=
github.com/pulumi/pulumi-java/pkg v0.16.1 h1:orHnDWFbpOERwaBLry9f+6nqPX7x0MsrIkaa5QDGAns=
github.com/pulumi/pulumi-java/pkg v0.16.1/go.mod h1:QH0DihZkWYle9XFc+LJ76m4hUo+fA3RdyaM90pqOaSM=
github.com/pulumi/pulumi-java/pkg v0.17.0 h1:KmaVLrVmlkzShOfaJNJDlckorbFm8dM/C7L4hj6LX8U=
github.com/pulumi/pulumi-java/pkg v0.17.0/go.mod h1:ji4U4H7t81X4aaE88D9+z5CmKH/QoLwQi9N1iGl+2KQ=
github.com/pulumi/pulumi-terraform-bridge/pf v0.48.0 h1:wbE7jVvIYE2QmQh9st9a1oBRCj9yc6EPeAIoDHcpUsw=
github.com/pulumi/pulumi-terraform-bridge/pf v0.48.0/go.mod h1:Bw6XabsWSw4gjk9q94MZHorvpx7bp710DWJgMQCAaJE=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.95.0 h1:zChnIrzR89muOosXFxcd/HTnOw7lkbm7EXKiXQI0/2Y=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.95.0/go.mod h1:1d07wF5+u3d9xOtzuX/3K9+QF4/ISp0QKdC/orX0abI=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 h1:uJB3tM1j+9SKeXLCAx3DBVHsYk4ddXNrVoiqpgXal2Q=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0/go.mod h1:WnOTAfdtm5+kW3rIU0rLhxFSEHtJIMf19FdOU6NFXG0=
github.com/pulumi/pulumi-yaml v1.11.1 h1:ULUL9fpb2Bwgf3jJHx0FamKYm0ld0KxBQr/uSAslRLk=
github.com/pulumi/pulumi-yaml v1.11.1/go.mod h1:RdXRBupRGGAD1kbYNG1V1h6pyFnXisvQsl0AANvVjGI=
github.com/pulumi/pulumi-yaml v1.11.2 h1:MU7TTNbruGCSgNHhaBygjIbLWm3WSbd1q98GpMIgQzE=
github.com/pulumi/pulumi-yaml v1.11.2/go.mod h1:RdXRBupRGGAD1kbYNG1V1h6pyFnXisvQsl0AANvVjGI=
github.com/pulumi/pulumi/pkg/v3 v3.137.0 h1:/KPFQQaB5W0/GhVxSTGnEzv3ZW5uieGN5Q2q+Lsr+Zw=
github.com/pulumi/pulumi/pkg/v3 v3.137.0/go.mod h1:ZQXJUTysDwq/mtilutRBKguH6DI+3b2WgNcOrs0whJ0=
github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0=
github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM=
github.com/pulumi/pulumi/sdk/v3 v3.138.0 h1:1feN0YU1dHnbNw+cHaenmx3AgU0DEiKQbvjxaGQuShk=
github.com/pulumi/pulumi/sdk/v3 v3.138.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI=
github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU=
github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI=
github.com/pulumi/pulumi/sdk/v3 v3.141.0 h1:ojJlof5h2ZoqxSgpEKXJzW1efUtHAKdzdqj6v5R2wTA=
github.com/pulumi/pulumi/sdk/v3 v3.141.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI=
github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo=
Expand Down
2 changes: 1 addition & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/bpg/terraform-provider-proxmox/proxmoxtf/provider"
"github.com/ettle/strcase"
"github.com/muhlba91/pulumi-proxmoxve/provider/pkg/version"
pf "github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge"
pf "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/pf/tfbridge"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
shim "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim"
shimv2 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2"
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Acl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Pulumi.ProxmoxVE
/// {
/// var operationsAutomation = new ProxmoxVE.Permission.User("operationsAutomation", new()
/// {
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// Password = "a-strong-password",
/// UserId = "operations-automation@pve",
/// });
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/HA/Haresource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Pulumi.ProxmoxVE.HA
/// ResourceId = "vm:123",
/// State = "started",
/// Group = "example",
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// }, new CustomResourceOptions
/// {
/// DependsOn =
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Network/FirewallAlias.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Pulumi.ProxmoxVE.Network
/// NodeName = proxmox_virtual_environment_vm.Example.Node_name,
/// VmId = proxmox_virtual_environment_vm.Example.Vm_id,
/// Cidr = "192.168.0.0/23",
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// }, new CustomResourceOptions
/// {
/// DependsOn =
Expand All @@ -41,7 +41,7 @@ namespace Pulumi.ProxmoxVE.Network
/// var ubuntuVm = new ProxmoxVE.Network.FirewallAlias("ubuntuVm", new()
/// {
/// Cidr = "192.168.0.1",
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// });
///
/// });
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Network/FirewallIPSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Pulumi.ProxmoxVE.Network
/// {
/// NodeName = proxmox_virtual_environment_vm.Example.Node_name,
/// VmId = proxmox_virtual_environment_vm.Example.Vm_id,
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// Cidrs = new[]
/// {
/// new ProxmoxVE.Network.Inputs.FirewallIPSetCidrArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Network/FirewallSecurityGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Pulumi.ProxmoxVE.Network
/// {
/// var webserver = new ProxmoxVE.Network.FirewallSecurityGroup("webserver", new()
/// {
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// Rules = new[]
/// {
/// new ProxmoxVE.Network.Inputs.FirewallSecurityGroupRuleArgs
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Permission/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Pulumi.ProxmoxVE.Permission
/// {
/// var operationsTeam = new ProxmoxVE.Permission.Group("operationsTeam", new()
/// {
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// GroupId = "operations-team",
/// });
///
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Permission/Pool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Pulumi.ProxmoxVE.Permission
/// {
/// var operationsPool = new ProxmoxVE.Permission.Pool("operationsPool", new()
/// {
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// PoolId = "operations-pool",
/// });
///
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Permission/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace Pulumi.ProxmoxVE.Permission
/// RoleId = operationsMonitoring.RoleId,
/// },
/// },
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// Password = "a-strong-password",
/// UserId = "operations-automation@pve",
/// });
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/User/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Pulumi.ProxmoxVE.User
/// // if creating a user token, the user must be created first
/// var user = new ProxmoxVE.Permission.User("user", new()
/// {
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// Email = "user@pve",
/// Enabled = true,
/// ExpirationDate = "2034-01-01T22:00:00Z",
Expand All @@ -34,7 +34,7 @@ namespace Pulumi.ProxmoxVE.User
///
/// var userToken = new ProxmoxVE.User.Token("userToken", new()
/// {
/// Comment = "Managed by Terraform",
/// Comment = "Managed by Pulumi",
/// ExpirationDate = "2033-01-01T22:00:00Z",
/// TokenName = "tk1",
/// UserId = user.UserId,
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/proxmoxve/acl.go

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

2 changes: 1 addition & 1 deletion sdk/go/proxmoxve/ha/haresource.go

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

4 changes: 2 additions & 2 deletions sdk/go/proxmoxve/network/firewallAlias.go

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

2 changes: 1 addition & 1 deletion sdk/go/proxmoxve/network/firewallIPSet.go

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

2 changes: 1 addition & 1 deletion sdk/go/proxmoxve/network/firewallSecurityGroup.go

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

2 changes: 1 addition & 1 deletion sdk/go/proxmoxve/permission/group.go

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

2 changes: 1 addition & 1 deletion sdk/go/proxmoxve/permission/pool.go

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

2 changes: 1 addition & 1 deletion sdk/go/proxmoxve/permission/user.go

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

4 changes: 2 additions & 2 deletions sdk/go/proxmoxve/user/token.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
*
* public static void stack(Context ctx) }{{@code
* var operationsAutomation = new User("operationsAutomation", UserArgs.builder()
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .password("a-strong-password")
* .userId("operations-automation}{@literal @}{@code pve")
* .build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* .resourceId("vm:123")
* .state("started")
* .group("example")
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .build(), CustomResourceOptions.builder()
* .dependsOn(proxmox_virtual_environment_hagroup.example())
* .build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
* public static void stack(Context ctx) }{{@code
* // if creating a user token, the user must be created first
* var user = new User("user", UserArgs.builder()
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .email("user}{@literal @}{@code pve")
* .enabled(true)
* .expirationDate("2034-01-01T22:00:00Z")
* .userId("user}{@literal @}{@code pve")
* .build());
*
* var userToken = new Token("userToken", TokenArgs.builder()
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .expirationDate("2033-01-01T22:00:00Z")
* .tokenName("tk1")
* .userId(user.userId())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@
* .nodeName(proxmox_virtual_environment_vm.example().node_name())
* .vmId(proxmox_virtual_environment_vm.example().vm_id())
* .cidr("192.168.0.0/23")
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .build(), CustomResourceOptions.builder()
* .dependsOn(proxmox_virtual_environment_vm.example())
* .build());
*
* var ubuntuVm = new FirewallAlias("ubuntuVm", FirewallAliasArgs.builder()
* .cidr("192.168.0.1")
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .build());
*
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* var ipset = new FirewallIPSet("ipset", FirewallIPSetArgs.builder()
* .nodeName(proxmox_virtual_environment_vm.example().node_name())
* .vmId(proxmox_virtual_environment_vm.example().vm_id())
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .cidrs(
* FirewallIPSetCidrArgs.builder()
* .name("192.168.0.0/23")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*
* public static void stack(Context ctx) {
* var webserver = new FirewallSecurityGroup("webserver", FirewallSecurityGroupArgs.builder()
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .rules(
* FirewallSecurityGroupRuleArgs.builder()
* .action("ACCEPT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
*
* public static void stack(Context ctx) {
* var operationsTeam = new Group("operationsTeam", GroupArgs.builder()
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .groupId("operations-team")
* .build());
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
*
* public static void stack(Context ctx) {
* var operationsPool = new Pool("operationsPool", PoolArgs.builder()
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .poolId("operations-pool")
* .build());
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* .propagate(true)
* .roleId(operationsMonitoring.roleId())
* .build())
* .comment("Managed by Terraform")
* .comment("Managed by Pulumi")
* .password("a-strong-password")
* .userId("operations-automation}{@literal @}{@code pve")
* .build());
Expand Down
Loading

0 comments on commit 8ce3feb

Please sign in to comment.