From f5ee2f5e736bfebc950931cd316c6b8f96c959ba Mon Sep 17 00:00:00 2001 From: Toni Kangas Date: Wed, 16 Oct 2024 15:53:05 +0300 Subject: [PATCH] fix: add tag to `PluginDownloadURL` (#14) --- examples/server/Pulumi.yaml | 4 ---- provider/cmd/pulumi-resource-upcloud/schema.json | 2 +- provider/go.mod | 2 +- provider/go.sum | 4 ++-- provider/resources.go | 2 +- sdk/dotnet/FloatingIpAddress.cs | 2 +- sdk/dotnet/Gateway.cs | 2 +- sdk/dotnet/GatewayConnection.cs | 2 +- sdk/dotnet/GatewayConnectionTunnel.cs | 2 +- sdk/dotnet/KubernetesCluster.cs | 2 +- sdk/dotnet/KubernetesNodeGroup.cs | 2 +- sdk/dotnet/Loadbalancer.cs | 2 +- sdk/dotnet/LoadbalancerBackend.cs | 2 +- sdk/dotnet/LoadbalancerBackendTlsConfig.cs | 2 +- sdk/dotnet/LoadbalancerDynamicBackendMember.cs | 2 +- sdk/dotnet/LoadbalancerDynamicCertificateBundle.cs | 2 +- sdk/dotnet/LoadbalancerFrontend.cs | 2 +- sdk/dotnet/LoadbalancerFrontendRule.cs | 2 +- sdk/dotnet/LoadbalancerFrontendTlsConfig.cs | 2 +- sdk/dotnet/LoadbalancerManualCertificateBundle.cs | 2 +- sdk/dotnet/LoadbalancerResolver.cs | 2 +- sdk/dotnet/LoadbalancerStaticBackendMember.cs | 2 +- sdk/dotnet/ManagedDatabaseLogicalDatabase.cs | 2 +- sdk/dotnet/ManagedDatabaseMysql.cs | 2 +- sdk/dotnet/ManagedDatabaseOpensearch.cs | 2 +- sdk/dotnet/ManagedDatabasePostgresql.cs | 2 +- sdk/dotnet/ManagedDatabaseRedis.cs | 2 +- sdk/dotnet/ManagedDatabaseUser.cs | 2 +- sdk/dotnet/ManagedObjectStorage.cs | 2 +- sdk/dotnet/ManagedObjectStorageCustomDomain.cs | 2 +- sdk/dotnet/ManagedObjectStoragePolicy.cs | 2 +- sdk/dotnet/ManagedObjectStorageUser.cs | 2 +- sdk/dotnet/ManagedObjectStorageUserAccessKey.cs | 2 +- sdk/dotnet/ManagedObjectStorageUserPolicy.cs | 2 +- sdk/dotnet/Network.cs | 2 +- sdk/dotnet/NetworkPeering.cs | 2 +- sdk/dotnet/ObjectStorage.cs | 2 +- sdk/dotnet/Provider.cs | 2 +- sdk/dotnet/Router.cs | 2 +- sdk/dotnet/Server.cs | 2 +- sdk/dotnet/ServerFirewallRules.cs | 2 +- sdk/dotnet/ServerGroup.cs | 2 +- sdk/dotnet/Storage.cs | 2 +- sdk/dotnet/StorageTemplate.cs | 2 +- sdk/dotnet/Tag.cs | 2 +- sdk/dotnet/Utilities.cs | 2 +- sdk/dotnet/pulumi-plugin.json | 2 +- sdk/go/upcloud/internal/pulumiUtilities.go | 4 ++-- sdk/go/upcloud/pulumi-plugin.json | 2 +- sdk/nodejs/package.json | 2 +- sdk/nodejs/utilities.ts | 2 +- sdk/python/pulumi_upcloud/_utilities.py | 2 +- sdk/python/pulumi_upcloud/pulumi-plugin.json | 2 +- 53 files changed, 54 insertions(+), 58 deletions(-) diff --git a/examples/server/Pulumi.yaml b/examples/server/Pulumi.yaml index 28d3f3b..f7191ae 100644 --- a/examples/server/Pulumi.yaml +++ b/examples/server/Pulumi.yaml @@ -9,7 +9,3 @@ config: pulumi:tags: value: pulumi:template: python -plugins: - providers: - - name: upcloud - path: ../../bin/ diff --git a/provider/cmd/pulumi-resource-upcloud/schema.json b/provider/cmd/pulumi-resource-upcloud/schema.json index 6dcad6f..1efda49 100644 --- a/provider/cmd/pulumi-resource-upcloud/schema.json +++ b/provider/cmd/pulumi-resource-upcloud/schema.json @@ -9,7 +9,7 @@ "license": "Apache-2.0", "attribution": "This Pulumi package is based on the [`upcloud` Terraform Provider](https://github.com/UpCloudLtd/terraform-provider-upcloud).", "repository": "https://github.com/UpCloudLtd/pulumi-upcloud", - "pluginDownloadURL": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + "pluginDownloadURL": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", "publisher": "UpCloudLtd", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" diff --git a/provider/go.mod b/provider/go.mod index 788fb8c..01afee9 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -240,7 +240,7 @@ require ( google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect google.golang.org/grpc v1.67.1 // indirect google.golang.org/protobuf v1.35.1 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect diff --git a/provider/go.sum b/provider/go.sum index 507f1cc..d708cb0 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2885,8 +2885,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a/go. google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9 h1:QCqS/PdaHTSWGvupk2F/ehwHtGc0/GYkT+3GAcR1CCc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 h1:X58yt85/IXCx0Y3ZwN6sEIKZzQtDEYaBWrDvErdXrRE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= diff --git a/provider/resources.go b/provider/resources.go index 21d6f63..b58c005 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -142,7 +142,7 @@ func Provider() tfbridge.ProviderInfo { // PluginDownloadURL is an optional URL used to download the Provider // for use in Pulumi programs // e.g https://github.com/org/pulumi-provider-name/releases/ - PluginDownloadURL: "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL: "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", Description: "A Pulumi package for creating and managing UpCloud resources.", // category/cloud tag helps with categorizing the package in the Pulumi Registry. // For all available categories, see `Keywords` in diff --git a/sdk/dotnet/FloatingIpAddress.cs b/sdk/dotnet/FloatingIpAddress.cs index 2b632bf..4490886 100644 --- a/sdk/dotnet/FloatingIpAddress.cs +++ b/sdk/dotnet/FloatingIpAddress.cs @@ -119,7 +119,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Gateway.cs b/sdk/dotnet/Gateway.cs index 7d4af51..7622ed3 100644 --- a/sdk/dotnet/Gateway.cs +++ b/sdk/dotnet/Gateway.cs @@ -152,7 +152,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/GatewayConnection.cs b/sdk/dotnet/GatewayConnection.cs index 4b96613..9eda9e5 100644 --- a/sdk/dotnet/GatewayConnection.cs +++ b/sdk/dotnet/GatewayConnection.cs @@ -144,7 +144,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/GatewayConnectionTunnel.cs b/sdk/dotnet/GatewayConnectionTunnel.cs index 183c77b..004b4d4 100644 --- a/sdk/dotnet/GatewayConnectionTunnel.cs +++ b/sdk/dotnet/GatewayConnectionTunnel.cs @@ -86,7 +86,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/KubernetesCluster.cs b/sdk/dotnet/KubernetesCluster.cs index d08e6ee..dc524fa 100644 --- a/sdk/dotnet/KubernetesCluster.cs +++ b/sdk/dotnet/KubernetesCluster.cs @@ -187,7 +187,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/KubernetesNodeGroup.cs b/sdk/dotnet/KubernetesNodeGroup.cs index c47c797..341dad1 100644 --- a/sdk/dotnet/KubernetesNodeGroup.cs +++ b/sdk/dotnet/KubernetesNodeGroup.cs @@ -172,7 +172,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Loadbalancer.cs b/sdk/dotnet/Loadbalancer.cs index 47f54fe..6de1af1 100644 --- a/sdk/dotnet/Loadbalancer.cs +++ b/sdk/dotnet/Loadbalancer.cs @@ -181,7 +181,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/LoadbalancerBackend.cs b/sdk/dotnet/LoadbalancerBackend.cs index ab94914..c613d83 100644 --- a/sdk/dotnet/LoadbalancerBackend.cs +++ b/sdk/dotnet/LoadbalancerBackend.cs @@ -110,7 +110,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/LoadbalancerBackendTlsConfig.cs b/sdk/dotnet/LoadbalancerBackendTlsConfig.cs index 3e14615..7d9c4d0 100644 --- a/sdk/dotnet/LoadbalancerBackendTlsConfig.cs +++ b/sdk/dotnet/LoadbalancerBackendTlsConfig.cs @@ -56,7 +56,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/LoadbalancerDynamicBackendMember.cs b/sdk/dotnet/LoadbalancerDynamicBackendMember.cs index 33ad436..62e7f3e 100644 --- a/sdk/dotnet/LoadbalancerDynamicBackendMember.cs +++ b/sdk/dotnet/LoadbalancerDynamicBackendMember.cs @@ -143,7 +143,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/LoadbalancerDynamicCertificateBundle.cs b/sdk/dotnet/LoadbalancerDynamicCertificateBundle.cs index 9aaf7f2..b485dcd 100644 --- a/sdk/dotnet/LoadbalancerDynamicCertificateBundle.cs +++ b/sdk/dotnet/LoadbalancerDynamicCertificateBundle.cs @@ -97,7 +97,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/LoadbalancerFrontend.cs b/sdk/dotnet/LoadbalancerFrontend.cs index 773a094..fadd950 100644 --- a/sdk/dotnet/LoadbalancerFrontend.cs +++ b/sdk/dotnet/LoadbalancerFrontend.cs @@ -160,7 +160,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/LoadbalancerFrontendRule.cs b/sdk/dotnet/LoadbalancerFrontendRule.cs index 98cf651..5233ba1 100644 --- a/sdk/dotnet/LoadbalancerFrontendRule.cs +++ b/sdk/dotnet/LoadbalancerFrontendRule.cs @@ -147,7 +147,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/LoadbalancerFrontendTlsConfig.cs b/sdk/dotnet/LoadbalancerFrontendTlsConfig.cs index 00b5354..f12e296 100644 --- a/sdk/dotnet/LoadbalancerFrontendTlsConfig.cs +++ b/sdk/dotnet/LoadbalancerFrontendTlsConfig.cs @@ -115,7 +115,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/LoadbalancerManualCertificateBundle.cs b/sdk/dotnet/LoadbalancerManualCertificateBundle.cs index 0a3df09..d8ef2e7 100644 --- a/sdk/dotnet/LoadbalancerManualCertificateBundle.cs +++ b/sdk/dotnet/LoadbalancerManualCertificateBundle.cs @@ -80,7 +80,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", AdditionalSecretOutputs = { "privateKey", diff --git a/sdk/dotnet/LoadbalancerResolver.cs b/sdk/dotnet/LoadbalancerResolver.cs index 29a75d5..e0ef751 100644 --- a/sdk/dotnet/LoadbalancerResolver.cs +++ b/sdk/dotnet/LoadbalancerResolver.cs @@ -135,7 +135,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/LoadbalancerStaticBackendMember.cs b/sdk/dotnet/LoadbalancerStaticBackendMember.cs index 7c0ffbc..61f4ace 100644 --- a/sdk/dotnet/LoadbalancerStaticBackendMember.cs +++ b/sdk/dotnet/LoadbalancerStaticBackendMember.cs @@ -129,7 +129,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ManagedDatabaseLogicalDatabase.cs b/sdk/dotnet/ManagedDatabaseLogicalDatabase.cs index a07f001..95288e2 100644 --- a/sdk/dotnet/ManagedDatabaseLogicalDatabase.cs +++ b/sdk/dotnet/ManagedDatabaseLogicalDatabase.cs @@ -101,7 +101,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ManagedDatabaseMysql.cs b/sdk/dotnet/ManagedDatabaseMysql.cs index 7da62fa..6fb1e88 100644 --- a/sdk/dotnet/ManagedDatabaseMysql.cs +++ b/sdk/dotnet/ManagedDatabaseMysql.cs @@ -207,7 +207,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", AdditionalSecretOutputs = { "servicePassword", diff --git a/sdk/dotnet/ManagedDatabaseOpensearch.cs b/sdk/dotnet/ManagedDatabaseOpensearch.cs index 51c47c7..613094e 100644 --- a/sdk/dotnet/ManagedDatabaseOpensearch.cs +++ b/sdk/dotnet/ManagedDatabaseOpensearch.cs @@ -208,7 +208,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", AdditionalSecretOutputs = { "servicePassword", diff --git a/sdk/dotnet/ManagedDatabasePostgresql.cs b/sdk/dotnet/ManagedDatabasePostgresql.cs index 8a145c0..79e9a3e 100644 --- a/sdk/dotnet/ManagedDatabasePostgresql.cs +++ b/sdk/dotnet/ManagedDatabasePostgresql.cs @@ -200,7 +200,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", AdditionalSecretOutputs = { "servicePassword", diff --git a/sdk/dotnet/ManagedDatabaseRedis.cs b/sdk/dotnet/ManagedDatabaseRedis.cs index ed29209..09f1f37 100644 --- a/sdk/dotnet/ManagedDatabaseRedis.cs +++ b/sdk/dotnet/ManagedDatabaseRedis.cs @@ -192,7 +192,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", AdditionalSecretOutputs = { "servicePassword", diff --git a/sdk/dotnet/ManagedDatabaseUser.cs b/sdk/dotnet/ManagedDatabaseUser.cs index f6c63fa..79a808d 100644 --- a/sdk/dotnet/ManagedDatabaseUser.cs +++ b/sdk/dotnet/ManagedDatabaseUser.cs @@ -113,7 +113,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", AdditionalSecretOutputs = { "password", diff --git a/sdk/dotnet/ManagedObjectStorage.cs b/sdk/dotnet/ManagedObjectStorage.cs index 89340db..37ef7ba 100644 --- a/sdk/dotnet/ManagedObjectStorage.cs +++ b/sdk/dotnet/ManagedObjectStorage.cs @@ -143,7 +143,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ManagedObjectStorageCustomDomain.cs b/sdk/dotnet/ManagedObjectStorageCustomDomain.cs index 4c5cacc..af605d7 100644 --- a/sdk/dotnet/ManagedObjectStorageCustomDomain.cs +++ b/sdk/dotnet/ManagedObjectStorageCustomDomain.cs @@ -97,7 +97,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ManagedObjectStoragePolicy.cs b/sdk/dotnet/ManagedObjectStoragePolicy.cs index 2a8288a..6fa683a 100644 --- a/sdk/dotnet/ManagedObjectStoragePolicy.cs +++ b/sdk/dotnet/ManagedObjectStoragePolicy.cs @@ -125,7 +125,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ManagedObjectStorageUser.cs b/sdk/dotnet/ManagedObjectStorageUser.cs index c77920b..4735ea5 100644 --- a/sdk/dotnet/ManagedObjectStorageUser.cs +++ b/sdk/dotnet/ManagedObjectStorageUser.cs @@ -89,7 +89,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ManagedObjectStorageUserAccessKey.cs b/sdk/dotnet/ManagedObjectStorageUserAccessKey.cs index a571352..6e85e2b 100644 --- a/sdk/dotnet/ManagedObjectStorageUserAccessKey.cs +++ b/sdk/dotnet/ManagedObjectStorageUserAccessKey.cs @@ -112,7 +112,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", AdditionalSecretOutputs = { "secretAccessKey", diff --git a/sdk/dotnet/ManagedObjectStorageUserPolicy.cs b/sdk/dotnet/ManagedObjectStorageUserPolicy.cs index baa3432..33cb89c 100644 --- a/sdk/dotnet/ManagedObjectStorageUserPolicy.cs +++ b/sdk/dotnet/ManagedObjectStorageUserPolicy.cs @@ -94,7 +94,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Network.cs b/sdk/dotnet/Network.cs index 2cfc246..4436913 100644 --- a/sdk/dotnet/Network.cs +++ b/sdk/dotnet/Network.cs @@ -110,7 +110,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/NetworkPeering.cs b/sdk/dotnet/NetworkPeering.cs index 7b5e8b9..2d4d46d 100644 --- a/sdk/dotnet/NetworkPeering.cs +++ b/sdk/dotnet/NetworkPeering.cs @@ -112,7 +112,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ObjectStorage.cs b/sdk/dotnet/ObjectStorage.cs index 3c2e039..ad82736 100644 --- a/sdk/dotnet/ObjectStorage.cs +++ b/sdk/dotnet/ObjectStorage.cs @@ -153,7 +153,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Provider.cs b/sdk/dotnet/Provider.cs index 6e26120..c223a76 100644 --- a/sdk/dotnet/Provider.cs +++ b/sdk/dotnet/Provider.cs @@ -48,7 +48,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Router.cs b/sdk/dotnet/Router.cs index 539f92d..067f43d 100644 --- a/sdk/dotnet/Router.cs +++ b/sdk/dotnet/Router.cs @@ -96,7 +96,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Server.cs b/sdk/dotnet/Server.cs index 0e20496..16c4bd4 100644 --- a/sdk/dotnet/Server.cs +++ b/sdk/dotnet/Server.cs @@ -227,7 +227,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ServerFirewallRules.cs b/sdk/dotnet/ServerFirewallRules.cs index 1ec3e77..8c3e724 100644 --- a/sdk/dotnet/ServerFirewallRules.cs +++ b/sdk/dotnet/ServerFirewallRules.cs @@ -119,7 +119,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/ServerGroup.cs b/sdk/dotnet/ServerGroup.cs index 7d05c34..7851e84 100644 --- a/sdk/dotnet/ServerGroup.cs +++ b/sdk/dotnet/ServerGroup.cs @@ -114,7 +114,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Storage.cs b/sdk/dotnet/Storage.cs index 796c930..8a105b0 100644 --- a/sdk/dotnet/Storage.cs +++ b/sdk/dotnet/Storage.cs @@ -124,7 +124,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/StorageTemplate.cs b/sdk/dotnet/StorageTemplate.cs index af00fbf..ca6c0cb 100644 --- a/sdk/dotnet/StorageTemplate.cs +++ b/sdk/dotnet/StorageTemplate.cs @@ -117,7 +117,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Tag.cs b/sdk/dotnet/Tag.cs index 751fc2f..09f1742 100644 --- a/sdk/dotnet/Tag.cs +++ b/sdk/dotnet/Tag.cs @@ -56,7 +56,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/", + PluginDownloadURL = "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Utilities.cs b/sdk/dotnet/Utilities.cs index a013eff..31b33a2 100644 --- a/sdk/dotnet/Utilities.cs +++ b/sdk/dotnet/Utilities.cs @@ -53,7 +53,7 @@ static class Utilities { var dst = src ?? new global::Pulumi.InvokeOptions{}; dst.Version = src?.Version ?? Version; - dst.PluginDownloadURL = src?.PluginDownloadURL ?? "https://github.com/UpCloudLtd/pulumi-upcloud/releases/"; + dst.PluginDownloadURL = src?.PluginDownloadURL ?? "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/"; return dst; } diff --git a/sdk/dotnet/pulumi-plugin.json b/sdk/dotnet/pulumi-plugin.json index cdfd24e..9b8ede3 100644 --- a/sdk/dotnet/pulumi-plugin.json +++ b/sdk/dotnet/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "upcloud", - "server": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/" + "server": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/" } diff --git a/sdk/go/upcloud/internal/pulumiUtilities.go b/sdk/go/upcloud/internal/pulumiUtilities.go index 98f06b6..a70c71b 100644 --- a/sdk/go/upcloud/internal/pulumiUtilities.go +++ b/sdk/go/upcloud/internal/pulumiUtilities.go @@ -164,7 +164,7 @@ func callPlainInner( // PkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource. func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption { defaults := []pulumi.ResourceOption{} - defaults = append(defaults, pulumi.PluginDownloadURL("https://github.com/UpCloudLtd/pulumi-upcloud/releases/")) + defaults = append(defaults, pulumi.PluginDownloadURL("https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/")) version := SdkVersion if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) @@ -175,7 +175,7 @@ func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOptio // PkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke. func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption { defaults := []pulumi.InvokeOption{} - defaults = append(defaults, pulumi.PluginDownloadURL("https://github.com/UpCloudLtd/pulumi-upcloud/releases/")) + defaults = append(defaults, pulumi.PluginDownloadURL("https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/")) version := SdkVersion if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) diff --git a/sdk/go/upcloud/pulumi-plugin.json b/sdk/go/upcloud/pulumi-plugin.json index cdfd24e..9b8ede3 100644 --- a/sdk/go/upcloud/pulumi-plugin.json +++ b/sdk/go/upcloud/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "upcloud", - "server": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/" + "server": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/" } diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 351889b..d3fb47c 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -23,6 +23,6 @@ "pulumi": { "resource": true, "name": "upcloud", - "server": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/" + "server": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/" } } diff --git a/sdk/nodejs/utilities.ts b/sdk/nodejs/utilities.ts index 10fc399..a0bfa40 100644 --- a/sdk/nodejs/utilities.ts +++ b/sdk/nodejs/utilities.ts @@ -53,7 +53,7 @@ export function getVersion(): string { /** @internal */ export function resourceOptsDefaults(): any { - return { version: getVersion(), pluginDownloadURL: "https://github.com/UpCloudLtd/pulumi-upcloud/releases/" }; + return { version: getVersion(), pluginDownloadURL: "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/" }; } /** @internal */ diff --git a/sdk/python/pulumi_upcloud/_utilities.py b/sdk/python/pulumi_upcloud/_utilities.py index 0c23abc..b345550 100644 --- a/sdk/python/pulumi_upcloud/_utilities.py +++ b/sdk/python/pulumi_upcloud/_utilities.py @@ -321,7 +321,7 @@ def deprecated_fn(*args, **kwargs): return decorator def get_plugin_download_url(): - return "https://github.com/UpCloudLtd/pulumi-upcloud/releases/" + return "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/" def get_version(): return _version_str diff --git a/sdk/python/pulumi_upcloud/pulumi-plugin.json b/sdk/python/pulumi_upcloud/pulumi-plugin.json index cdfd24e..9b8ede3 100644 --- a/sdk/python/pulumi_upcloud/pulumi-plugin.json +++ b/sdk/python/pulumi_upcloud/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "upcloud", - "server": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/" + "server": "https://github.com/UpCloudLtd/pulumi-upcloud/releases/download/${VERSION}/" }