diff --git a/provider/cmd/pulumi-resource-talos/schema.json b/provider/cmd/pulumi-resource-talos/schema.json index 652c367..af2ba2f 100644 --- a/provider/cmd/pulumi-resource-talos/schema.json +++ b/provider/cmd/pulumi-resource-talos/schema.json @@ -11,7 +11,7 @@ "attribution": "This Pulumi package is based on the [`talos` Terraform Provider](https://github.com/siderolabs/terraform-provider-talos).", "repository": "https://github.com/pulumiverse/pulumi-talos", "logoUrl": "https://www.talos.dev/images/Sidero_stacked_darkbkgd_RGB.png", - "pluginDownloadURL": "https://github.com/pulumiverse/pulumi-talos/releases", + "pluginDownloadURL": "github://api.github.com/pulumiverse", "publisher": "Pulumiverse", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" diff --git a/provider/resources.go b/provider/resources.go index 68fc6ed..302919c 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -42,7 +42,7 @@ func Provider() tfbridge.ProviderInfo { Version: version.Version, Publisher: "Pulumiverse", LogoURL: "https://www.talos.dev/images/Sidero_stacked_darkbkgd_RGB.png", - PluginDownloadURL: "https://github.com/pulumiverse/pulumi-talos/releases", + PluginDownloadURL: "github://api.github.com/pulumiverse", MetadataInfo: tfbridge.NewProviderMetadata(metadata), Resources: map[string]*tfbridge.ResourceInfo{ "talos_machine_bootstrap": {Tok: tfbridge.MakeResource(talosPkg, machineMod, "Bootstrap")}, diff --git a/sdk/dotnet/Machine/Bootstrap.cs b/sdk/dotnet/Machine/Bootstrap.cs index fb76af6..22eacfb 100644 --- a/sdk/dotnet/Machine/Bootstrap.cs +++ b/sdk/dotnet/Machine/Bootstrap.cs @@ -68,7 +68,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/pulumiverse/pulumi-talos/releases", + PluginDownloadURL = "github://api.github.com/pulumiverse", }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/Machine/ConfigurationApply.cs b/sdk/dotnet/Machine/ConfigurationApply.cs index c767029..ec54bed 100644 --- a/sdk/dotnet/Machine/ConfigurationApply.cs +++ b/sdk/dotnet/Machine/ConfigurationApply.cs @@ -84,7 +84,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/pulumiverse/pulumi-talos/releases", + PluginDownloadURL = "github://api.github.com/pulumiverse", AdditionalSecretOutputs = { "machineConfiguration", diff --git a/sdk/dotnet/Machine/Secrets.cs b/sdk/dotnet/Machine/Secrets.cs index 9e6a1c3..3f10a74 100644 --- a/sdk/dotnet/Machine/Secrets.cs +++ b/sdk/dotnet/Machine/Secrets.cs @@ -80,7 +80,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/pulumiverse/pulumi-talos/releases", + PluginDownloadURL = "github://api.github.com/pulumiverse", }; 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 36e02b4..f4a0982 100644 --- a/sdk/dotnet/Provider.cs +++ b/sdk/dotnet/Provider.cs @@ -36,7 +36,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, - PluginDownloadURL = "https://github.com/pulumiverse/pulumi-talos/releases", + PluginDownloadURL = "github://api.github.com/pulumiverse", }; 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 0c31926..555ce3b 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/pulumiverse/pulumi-talos/releases"; + dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/pulumiverse"; return dst; } diff --git a/sdk/dotnet/pulumi-plugin.json b/sdk/dotnet/pulumi-plugin.json index 15aab43..78ac155 100644 --- a/sdk/dotnet/pulumi-plugin.json +++ b/sdk/dotnet/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "talos", - "server": "https://github.com/pulumiverse/pulumi-talos/releases" + "server": "github://api.github.com/pulumiverse" } diff --git a/sdk/go/talos/internal/pulumiUtilities.go b/sdk/go/talos/internal/pulumiUtilities.go index 092c437..8036ec2 100644 --- a/sdk/go/talos/internal/pulumiUtilities.go +++ b/sdk/go/talos/internal/pulumiUtilities.go @@ -93,7 +93,7 @@ func IsZero(v interface{}) bool { // 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/pulumiverse/pulumi-talos/releases")) + defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/pulumiverse")) version := SdkVersion if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) @@ -104,7 +104,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/pulumiverse/pulumi-talos/releases")) + defaults = append(defaults, pulumi.PluginDownloadURL("github://api.github.com/pulumiverse")) version := SdkVersion if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) diff --git a/sdk/go/talos/pulumi-plugin.json b/sdk/go/talos/pulumi-plugin.json index 15aab43..78ac155 100644 --- a/sdk/go/talos/pulumi-plugin.json +++ b/sdk/go/talos/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "talos", - "server": "https://github.com/pulumiverse/pulumi-talos/releases" + "server": "github://api.github.com/pulumiverse" } diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 46a1731..88fa0a2 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -24,6 +24,6 @@ "pulumi": { "resource": true, "name": "talos", - "server": "https://github.com/pulumiverse/pulumi-talos/releases" + "server": "github://api.github.com/pulumiverse" } } diff --git a/sdk/nodejs/utilities.ts b/sdk/nodejs/utilities.ts index 4950f72..ff05d49 100644 --- a/sdk/nodejs/utilities.ts +++ b/sdk/nodejs/utilities.ts @@ -50,7 +50,7 @@ export function getVersion(): string { /** @internal */ export function resourceOptsDefaults(): any { - return { version: getVersion(), pluginDownloadURL: "https://github.com/pulumiverse/pulumi-talos/releases" }; + return { version: getVersion(), pluginDownloadURL: "github://api.github.com/pulumiverse" }; } /** @internal */ diff --git a/sdk/python/pulumiverse_talos/_utilities.py b/sdk/python/pulumiverse_talos/_utilities.py index 536b2e1..0bb35cf 100644 --- a/sdk/python/pulumiverse_talos/_utilities.py +++ b/sdk/python/pulumiverse_talos/_utilities.py @@ -247,4 +247,4 @@ def lifted_func(*args, opts=None, **kwargs): return (lambda _: lifted_func) def get_plugin_download_url(): - return "https://github.com/pulumiverse/pulumi-talos/releases" + return "github://api.github.com/pulumiverse" diff --git a/sdk/python/pulumiverse_talos/pulumi-plugin.json b/sdk/python/pulumiverse_talos/pulumi-plugin.json index 15aab43..78ac155 100644 --- a/sdk/python/pulumiverse_talos/pulumi-plugin.json +++ b/sdk/python/pulumiverse_talos/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "talos", - "server": "https://github.com/pulumiverse/pulumi-talos/releases" + "server": "github://api.github.com/pulumiverse" }