Skip to content

Commit a7cebe0

Browse files
Upgrade terraform-provider-upcloud to v5.22.0 (#52)
This PR was generated via `$ upgrade-provider UpCloudLtd/pulumi-upcloud --kind=provider --target-bridge-version=latest --target-version=5.22.0 --allow-missing-docs=true`. --- - Updating Java Gen version from 1.9.0 to 1.11.0. - Upgrading terraform-provider-upcloud from 5.21.0 to 5.22.0. Fixes #51 --------- Co-authored-by: pulumi-bot <[email protected]>
1 parent 1e3173d commit a7cebe0

24 files changed

+2610
-54
lines changed

.pulumi-java-gen.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.0
1+
1.11.0

provider/cmd/pulumi-resource-upcloud/bridge-metadata.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,9 @@
762762
}
763763
}
764764
},
765+
"upcloud_storage_backup": {
766+
"current": "upcloud:index/storageBackup:StorageBackup"
767+
},
765768
"upcloud_storage_template": {
766769
"current": "upcloud:index/storageTemplate:StorageTemplate"
767770
},
@@ -999,6 +1002,7 @@
9991002
"upcloud:index/serverFirewallRules:ServerFirewallRules": 0,
10001003
"upcloud:index/serverGroup:ServerGroup": 1,
10011004
"upcloud:index/storage:Storage": 1,
1005+
"upcloud:index/storageBackup:StorageBackup": 1,
10021006
"upcloud:index/storageTemplate:StorageTemplate": 1,
10031007
"upcloud:index/tag:Tag": 0
10041008
},

provider/cmd/pulumi-resource-upcloud/schema.json

Lines changed: 151 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6293,9 +6293,13 @@
62936293
"type": "string",
62946294
"description": "Set default storage encryption strategy for all nodes in the cluster.\n"
62956295
},
6296+
"upgradeStrategyType": {
6297+
"type": "string",
6298+
"description": "The upgrade strategy to use when changing the cluster `version`. If not set, `manual` strategy will be used by default.\nWhen using `manual` strategy, you must replace the existing node-groups to update them.\n"
6299+
},
62966300
"version": {
62976301
"type": "string",
6298-
"description": "Kubernetes version ID, e.g. `1.31`. You can list available version IDs with `upctl kubernetes versions`.\n"
6302+
"description": "Kubernetes version ID, e.g. `1.31`. You can list available version IDs with `upctl kubernetes versions`. Note that when\nchanging the cluster version, `upgrade_strategy` will be taken into account.\n"
62996303
},
63006304
"zone": {
63016305
"type": "string",
@@ -6350,9 +6354,13 @@
63506354
"type": "string",
63516355
"description": "Set default storage encryption strategy for all nodes in the cluster.\n"
63526356
},
6357+
"upgradeStrategyType": {
6358+
"type": "string",
6359+
"description": "The upgrade strategy to use when changing the cluster `version`. If not set, `manual` strategy will be used by default.\nWhen using `manual` strategy, you must replace the existing node-groups to update them.\n"
6360+
},
63536361
"version": {
63546362
"type": "string",
6355-
"description": "Kubernetes version ID, e.g. `1.31`. You can list available version IDs with `upctl kubernetes versions`.\n"
6363+
"description": "Kubernetes version ID, e.g. `1.31`. You can list available version IDs with `upctl kubernetes versions`. Note that when\nchanging the cluster version, `upgrade_strategy` will be taken into account.\n"
63566364
},
63576365
"zone": {
63586366
"type": "string",
@@ -6416,9 +6424,13 @@
64166424
"type": "string",
64176425
"description": "Set default storage encryption strategy for all nodes in the cluster.\n"
64186426
},
6427+
"upgradeStrategyType": {
6428+
"type": "string",
6429+
"description": "The upgrade strategy to use when changing the cluster `version`. If not set, `manual` strategy will be used by default.\nWhen using `manual` strategy, you must replace the existing node-groups to update them.\n"
6430+
},
64196431
"version": {
64206432
"type": "string",
6421-
"description": "Kubernetes version ID, e.g. `1.31`. You can list available version IDs with `upctl kubernetes versions`.\n"
6433+
"description": "Kubernetes version ID, e.g. `1.31`. You can list available version IDs with `upctl kubernetes versions`. Note that when\nchanging the cluster version, `upgrade_strategy` will be taken into account.\n"
64226434
},
64236435
"zone": {
64246436
"type": "string",
@@ -11313,6 +11325,142 @@
1131311325
"type": "object"
1131411326
}
1131511327
},
11328+
"upcloud:index/storageBackup:StorageBackup": {
11329+
"description": "Manages an on-demand storage backup.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as upcloud from \"@upcloud/pulumi-upcloud\";\n\nconst backup1 = new upcloud.StorageBackup(\"backup_1\", {\n title: \"backup\",\n sourceStorage: \"01185ec5-1b0b-4cbc-a968-eb920ac7572d\",\n});\n```\n```python\nimport pulumi\nimport pulumi_upcloud as upcloud\n\nbackup1 = upcloud.StorageBackup(\"backup_1\",\n title=\"backup\",\n source_storage=\"01185ec5-1b0b-4cbc-a968-eb920ac7572d\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing UpCloud = UpCloud.Pulumi.UpCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backup1 = new UpCloud.StorageBackup(\"backup_1\", new()\n {\n Title = \"backup\",\n SourceStorage = \"01185ec5-1b0b-4cbc-a968-eb920ac7572d\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/UpCloudLtd/pulumi-upcloud/sdk/go/upcloud\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := upcloud.NewStorageBackup(ctx, \"backup_1\", \u0026upcloud.StorageBackupArgs{\n\t\t\tTitle: pulumi.String(\"backup\"),\n\t\t\tSourceStorage: pulumi.String(\"01185ec5-1b0b-4cbc-a968-eb920ac7572d\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.upcloud.StorageBackup;\nimport com.pulumi.upcloud.StorageBackupArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backup1 = new StorageBackup(\"backup1\", StorageBackupArgs.builder()\n .title(\"backup\")\n .sourceStorage(\"01185ec5-1b0b-4cbc-a968-eb920ac7572d\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backup1:\n type: upcloud:StorageBackup\n name: backup_1\n properties:\n title: backup\n sourceStorage: 01185ec5-1b0b-4cbc-a968-eb920ac7572d\n```\n\u003c!--End PulumiCodeChooser --\u003e\n",
11330+
"properties": {
11331+
"createdAt": {
11332+
"type": "string",
11333+
"description": "Timestamp of the backup creation.\n"
11334+
},
11335+
"encrypt": {
11336+
"type": "boolean",
11337+
"description": "Sets if the storage is encrypted at rest.\n"
11338+
},
11339+
"labels": {
11340+
"type": "object",
11341+
"additionalProperties": {
11342+
"type": "string"
11343+
},
11344+
"description": "User defined key-value pairs to classify the storage.\n"
11345+
},
11346+
"size": {
11347+
"type": "integer",
11348+
"description": "The size of the storage in gigabytes.\n"
11349+
},
11350+
"sourceStorage": {
11351+
"type": "string",
11352+
"description": "The UUID of the storage to back up.\n"
11353+
},
11354+
"systemLabels": {
11355+
"type": "object",
11356+
"additionalProperties": {
11357+
"type": "string"
11358+
},
11359+
"description": "System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore\nand can not be modified by the user.\n"
11360+
},
11361+
"tier": {
11362+
"type": "string",
11363+
"description": "The tier of the storage.\n"
11364+
},
11365+
"title": {
11366+
"type": "string",
11367+
"description": "Title of the backup.\n"
11368+
},
11369+
"type": {
11370+
"type": "string",
11371+
"description": "The type of the storage.\n"
11372+
},
11373+
"zone": {
11374+
"type": "string",
11375+
"description": "The zone the storage is in, e.g. `de-fra1`.\n"
11376+
}
11377+
},
11378+
"required": [
11379+
"createdAt",
11380+
"encrypt",
11381+
"labels",
11382+
"size",
11383+
"sourceStorage",
11384+
"systemLabels",
11385+
"tier",
11386+
"title",
11387+
"type",
11388+
"zone"
11389+
],
11390+
"inputProperties": {
11391+
"labels": {
11392+
"type": "object",
11393+
"additionalProperties": {
11394+
"type": "string"
11395+
},
11396+
"description": "User defined key-value pairs to classify the storage.\n"
11397+
},
11398+
"sourceStorage": {
11399+
"type": "string",
11400+
"description": "The UUID of the storage to back up.\n"
11401+
},
11402+
"title": {
11403+
"type": "string",
11404+
"description": "Title of the backup.\n"
11405+
}
11406+
},
11407+
"requiredInputs": [
11408+
"sourceStorage",
11409+
"title"
11410+
],
11411+
"stateInputs": {
11412+
"description": "Input properties used for looking up and filtering StorageBackup resources.\n",
11413+
"properties": {
11414+
"createdAt": {
11415+
"type": "string",
11416+
"description": "Timestamp of the backup creation.\n"
11417+
},
11418+
"encrypt": {
11419+
"type": "boolean",
11420+
"description": "Sets if the storage is encrypted at rest.\n"
11421+
},
11422+
"labels": {
11423+
"type": "object",
11424+
"additionalProperties": {
11425+
"type": "string"
11426+
},
11427+
"description": "User defined key-value pairs to classify the storage.\n"
11428+
},
11429+
"size": {
11430+
"type": "integer",
11431+
"description": "The size of the storage in gigabytes.\n"
11432+
},
11433+
"sourceStorage": {
11434+
"type": "string",
11435+
"description": "The UUID of the storage to back up.\n"
11436+
},
11437+
"systemLabels": {
11438+
"type": "object",
11439+
"additionalProperties": {
11440+
"type": "string"
11441+
},
11442+
"description": "System defined key-value pairs to classify the storage. The keys of system defined labels are prefixed with underscore\nand can not be modified by the user.\n"
11443+
},
11444+
"tier": {
11445+
"type": "string",
11446+
"description": "The tier of the storage.\n"
11447+
},
11448+
"title": {
11449+
"type": "string",
11450+
"description": "Title of the backup.\n"
11451+
},
11452+
"type": {
11453+
"type": "string",
11454+
"description": "The type of the storage.\n"
11455+
},
11456+
"zone": {
11457+
"type": "string",
11458+
"description": "The zone the storage is in, e.g. `de-fra1`.\n"
11459+
}
11460+
},
11461+
"type": "object"
11462+
}
11463+
},
1131611464
"upcloud:index/storageTemplate:StorageTemplate": {
1131711465
"description": "Manages UpCloud storage templates. The storage templates are stored in the system as storages with `template` type.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as upcloud from \"@upcloud/pulumi-upcloud\";\n\nconst template = new upcloud.StorageTemplate(\"template\", {\n sourceStorage: \"e0328f8a-9944-406b-99c3-656dcc03e671\",\n title: \"custom-storage-template\",\n labels: {\n os: \"linux\",\n usage: \"example\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_upcloud as upcloud\n\ntemplate = upcloud.StorageTemplate(\"template\",\n source_storage=\"e0328f8a-9944-406b-99c3-656dcc03e671\",\n title=\"custom-storage-template\",\n labels={\n \"os\": \"linux\",\n \"usage\": \"example\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing UpCloud = UpCloud.Pulumi.UpCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var template = new UpCloud.StorageTemplate(\"template\", new()\n {\n SourceStorage = \"e0328f8a-9944-406b-99c3-656dcc03e671\",\n Title = \"custom-storage-template\",\n Labels = \n {\n { \"os\", \"linux\" },\n { \"usage\", \"example\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/UpCloudLtd/pulumi-upcloud/sdk/go/upcloud\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := upcloud.NewStorageTemplate(ctx, \"template\", \u0026upcloud.StorageTemplateArgs{\n\t\t\tSourceStorage: pulumi.String(\"e0328f8a-9944-406b-99c3-656dcc03e671\"),\n\t\t\tTitle: pulumi.String(\"custom-storage-template\"),\n\t\t\tLabels: pulumi.StringMap{\n\t\t\t\t\"os\": pulumi.String(\"linux\"),\n\t\t\t\t\"usage\": pulumi.String(\"example\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.upcloud.StorageTemplate;\nimport com.pulumi.upcloud.StorageTemplateArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var template = new StorageTemplate(\"template\", StorageTemplateArgs.builder()\n .sourceStorage(\"e0328f8a-9944-406b-99c3-656dcc03e671\")\n .title(\"custom-storage-template\")\n .labels(Map.ofEntries(\n Map.entry(\"os\", \"linux\"),\n Map.entry(\"usage\", \"example\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n template:\n type: upcloud:StorageTemplate\n properties:\n sourceStorage: e0328f8a-9944-406b-99c3-656dcc03e671\n title: custom-storage-template\n labels:\n os: linux\n usage: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n",
1131811466
"properties": {

provider/go.mod

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.23.2
77
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20250221232320-8d4cfd37a3cd
88

99
require (
10-
github.com/UpCloudLtd/terraform-provider-upcloud v0.0.0-20250415102600-50bdb4e4e0a6
10+
github.com/UpCloudLtd/terraform-provider-upcloud v0.0.0-20250512085756-c48d41beb301
1111
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
1212
github.com/pulumi/pulumi-terraform-bridge/v3 v3.106.0
1313
)
@@ -25,7 +25,7 @@ require (
2525
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
2626
github.com/Microsoft/go-winio v0.6.1 // indirect
2727
github.com/ProtonMail/go-crypto v1.1.5 // indirect
28-
github.com/UpCloudLtd/upcloud-go-api/v8 v8.16.0 // indirect
28+
github.com/UpCloudLtd/upcloud-go-api/v8 v8.18.0 // indirect
2929
github.com/agext/levenshtein v1.2.3 // indirect
3030
github.com/apparentlymart/go-cidr v1.1.0 // indirect
3131
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
@@ -179,15 +179,15 @@ require (
179179
go.opentelemetry.io/otel/metric v1.32.0 // indirect
180180
go.opentelemetry.io/otel/trace v1.32.0 // indirect
181181
go.uber.org/atomic v1.9.0 // indirect
182-
golang.org/x/crypto v0.35.0 // indirect
182+
golang.org/x/crypto v0.36.0 // indirect
183183
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
184184
golang.org/x/mod v0.22.0 // indirect
185-
golang.org/x/net v0.36.0 // indirect
185+
golang.org/x/net v0.38.0 // indirect
186186
golang.org/x/oauth2 v0.24.0 // indirect
187-
golang.org/x/sync v0.11.0 // indirect
188-
golang.org/x/sys v0.30.0 // indirect
189-
golang.org/x/term v0.29.0 // indirect
190-
golang.org/x/text v0.22.0 // indirect
187+
golang.org/x/sync v0.12.0 // indirect
188+
golang.org/x/sys v0.31.0 // indirect
189+
golang.org/x/term v0.30.0 // indirect
190+
golang.org/x/text v0.23.0 // indirect
191191
golang.org/x/time v0.5.0 // indirect
192192
golang.org/x/tools v0.29.0 // indirect
193193
google.golang.org/api v0.169.0 // indirect

0 commit comments

Comments
 (0)