Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugome committed Nov 1, 2022
1 parent 349456e commit b991514
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := 1.0.7
VERSION := 1.1.0

PACK := libp2p
PROJECT := github.com/LuxChanLu/pulumi-${PACK}
Expand Down
2 changes: 1 addition & 1 deletion provider/pkg/version/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package version

var Version string = "1.0.7"
var Version string = "1.1.0"
2 changes: 2 additions & 0 deletions schema.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/pulumi/pulumi/master/pkg/codegen/schema/pulumi.json
---
name: libp2p
pluginDownloadUrl: github://api.github.com/LuxChanLu

types:
libp2p:index:KeyType:
type: string
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/Key.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ private static ComponentResourceOptions MakeResourceOptions(ComponentResourceOpt
var defaultOptions = new ComponentResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/LuxChanLu",
AdditionalSecretOutputs =
{
"private",
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/LuxChanLu",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
1 change: 1 addition & 0 deletions sdk/dotnet/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ static class Utilities
{
var dst = src ?? new global::Pulumi.InvokeOptions{};
dst.Version = src?.Version ?? Version;
dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/LuxChanLu";
return dst;
}

Expand Down
3 changes: 2 additions & 1 deletion sdk/dotnet/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"resource": true,
"name": "libp2p"
"name": "libp2p",
"server": "github://api.github.com/LuxChanLu"
}
1 change: 1 addition & 0 deletions sdk/go/libp2p/key.go

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

1 change: 1 addition & 0 deletions sdk/go/libp2p/provider.go

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

3 changes: 2 additions & 1 deletion sdk/go/libp2p/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"resource": true,
"name": "libp2p"
"name": "libp2p",
"server": "github://api.github.com/LuxChanLu"
}
14 changes: 14 additions & 0 deletions sdk/go/libp2p/pulumiUtilities.go

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

3 changes: 2 additions & 1 deletion sdk/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"typescript": "^3.7.0"
},
"pulumi": {
"resource": true
"resource": true,
"pluginDownloadURL": "github://api.github.com/LuxChanLu"
}
}
2 changes: 1 addition & 1 deletion sdk/nodejs/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ export function getVersion(): string {

/** @internal */
export function resourceOptsDefaults(): any {
return { version: getVersion() };
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/LuxChanLu" };
}
3 changes: 3 additions & 0 deletions sdk/python/pulumi_libp2p/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,6 @@ def lifted_func(*args, opts=None, **kwargs):
**resolved_args['kwargs']))

return (lambda _: lifted_func)

def get_plugin_download_url():
return "github://api.github.com/LuxChanLu"
2 changes: 2 additions & 0 deletions sdk/python/pulumi_libp2p/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def _internal_init(__self__,
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.plugin_download_url is None:
opts.plugin_download_url = _utilities.get_plugin_download_url()
if opts.id is not None:
raise ValueError('ComponentResource classes do not support opts.id')
else:
Expand Down
2 changes: 2 additions & 0 deletions sdk/python/pulumi_libp2p/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def _internal_init(__self__,
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.plugin_download_url is None:
opts.plugin_download_url = _utilities.get_plugin_download_url()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
Expand Down
3 changes: 2 additions & 1 deletion sdk/python/pulumi_libp2p/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"resource": true,
"name": "libp2p"
"name": "libp2p",
"server": "github://api.github.com/LuxChanLu"
}
2 changes: 1 addition & 1 deletion sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class InstallPluginCommand(install):
def run(self):
install.run(self)
try:
check_call(['pulumi', 'plugin', 'install', 'resource', 'libp2p', PLUGIN_VERSION])
check_call(['pulumi', 'plugin', 'install', 'resource', 'libp2p', PLUGIN_VERSION, '--server', 'github://api.github.com/LuxChanLu'])
except OSError as error:
if error.errno == errno.ENOENT:
print(f"""
Expand Down

0 comments on commit b991514

Please sign in to comment.