Housekeeping (#8)
* Rename the provider to dockerbuild. * Add Makefile targets required by CI. * Add per-language test targets compatible with CI. * Fix broken example yaml. * Add gitignore exclusions to fix SDK generation in CI. * Fix lint errors. * Vendor pulumi CLI via `tools.go` instead of `.pulumi`. * Consolidate `go.mod`s into one file, with a minimal `go.mod` for the Go SDK. * Add codecov.
This commit is contained in:
8
sdk/dotnet/Provider.cs
generated
8
sdk/dotnet/Provider.cs
generated
@@ -7,9 +7,9 @@ using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.DockerNative
|
||||
namespace Pulumi.Dockerbuild
|
||||
{
|
||||
[DockerNativeResourceType("pulumi:providers:docker-native")]
|
||||
[DockerbuildResourceType("pulumi:providers:dockerbuild")]
|
||||
public partial class Provider : global::Pulumi.ProviderResource
|
||||
{
|
||||
/// <summary>
|
||||
@@ -20,7 +20,7 @@ namespace Pulumi.DockerNative
|
||||
/// <param name="args">The arguments used to populate this resource's properties</param>
|
||||
/// <param name="options">A bag of options that control this resource's behavior</param>
|
||||
public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null)
|
||||
: base("docker-native", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
|
||||
: base("dockerbuild", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Pulumi.DockerNative
|
||||
var defaultOptions = new CustomResourceOptions
|
||||
{
|
||||
Version = Utilities.Version,
|
||||
PluginDownloadURL = "github.com/pulumi/pulumi-docker-native",
|
||||
PluginDownloadURL = "github.com/pulumi/pulumi-dockerbuild",
|
||||
};
|
||||
var merged = CustomResourceOptions.Merge(defaultOptions, options);
|
||||
// Override the ID if one was specified for consistency with other language SDKs.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<Description>Description</Description>
|
||||
<PackageLicenseExpression></PackageLicenseExpression>
|
||||
<PackageProjectUrl>pulumi.com</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/pulumi/pulumi-docker-native</RepositoryUrl>
|
||||
<RepositoryUrl>https://github.com/pulumi/pulumi-dockerbuild</RepositoryUrl>
|
||||
<PackageIcon>logo.png</PackageIcon>
|
||||
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
@@ -44,7 +44,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Pulumi" Version="[3.54.1.0,4)" />
|
||||
<PackageReference Include="Pulumi" Version="3.*" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
10
sdk/dotnet/Random.cs
generated
10
sdk/dotnet/Random.cs
generated
@@ -7,9 +7,9 @@ using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.DockerNative
|
||||
namespace Pulumi.Dockerbuild
|
||||
{
|
||||
[DockerNativeResourceType("docker-native:index:Random")]
|
||||
[DockerbuildResourceType("dockerbuild:index:Random")]
|
||||
public partial class Random : global::Pulumi.CustomResource
|
||||
{
|
||||
[Output("length")]
|
||||
@@ -27,12 +27,12 @@ namespace Pulumi.DockerNative
|
||||
/// <param name="args">The arguments used to populate this resource's properties</param>
|
||||
/// <param name="options">A bag of options that control this resource's behavior</param>
|
||||
public Random(string name, RandomArgs args, CustomResourceOptions? options = null)
|
||||
: base("docker-native:index:Random", name, args ?? new RandomArgs(), MakeResourceOptions(options, ""))
|
||||
: base("dockerbuild:index:Random", name, args ?? new RandomArgs(), MakeResourceOptions(options, ""))
|
||||
{
|
||||
}
|
||||
|
||||
private Random(string name, Input<string> id, CustomResourceOptions? options = null)
|
||||
: base("docker-native:index:Random", name, null, MakeResourceOptions(options, id))
|
||||
: base("dockerbuild:index:Random", name, null, MakeResourceOptions(options, id))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Pulumi.DockerNative
|
||||
var defaultOptions = new CustomResourceOptions
|
||||
{
|
||||
Version = Utilities.Version,
|
||||
PluginDownloadURL = "github.com/pulumi/pulumi-docker-native",
|
||||
PluginDownloadURL = "github.com/pulumi/pulumi-dockerbuild",
|
||||
};
|
||||
var merged = CustomResourceOptions.Merge(defaultOptions, options);
|
||||
// Override the ID if one was specified for consistency with other language SDKs.
|
||||
|
||||
10
sdk/dotnet/Utilities.cs
generated
10
sdk/dotnet/Utilities.cs
generated
@@ -1,7 +1,7 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
namespace Pulumi.DockerNative
|
||||
namespace Pulumi.Dockerbuild
|
||||
{
|
||||
static class Utilities
|
||||
{
|
||||
@@ -53,7 +53,7 @@ namespace Pulumi.DockerNative
|
||||
{
|
||||
var dst = src ?? new global::Pulumi.InvokeOptions{};
|
||||
dst.Version = src?.Version ?? Version;
|
||||
dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github.com/pulumi/pulumi-docker-native";
|
||||
dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github.com/pulumi/pulumi-dockerbuild";
|
||||
return dst;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Pulumi.DockerNative
|
||||
static Utilities()
|
||||
{
|
||||
var assembly = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Utilities)).Assembly;
|
||||
using var stream = assembly.GetManifestResourceStream("Pulumi.DockerNative.version.txt");
|
||||
using var stream = assembly.GetManifestResourceStream("Pulumi.Dockerbuild.version.txt");
|
||||
using var reader = new global::System.IO.StreamReader(stream ?? throw new global::System.NotSupportedException("Missing embedded version.txt file"));
|
||||
version = reader.ReadToEnd().Trim();
|
||||
var parts = version.Split("\n");
|
||||
@@ -75,9 +75,9 @@ namespace Pulumi.DockerNative
|
||||
}
|
||||
}
|
||||
|
||||
internal sealed class DockerNativeResourceTypeAttribute : global::Pulumi.ResourceTypeAttribute
|
||||
internal sealed class DockerbuildResourceTypeAttribute : global::Pulumi.ResourceTypeAttribute
|
||||
{
|
||||
public DockerNativeResourceTypeAttribute(string type) : base(type, Utilities.Version)
|
||||
public DockerbuildResourceTypeAttribute(string type) : base(type, Utilities.Version)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
4
sdk/dotnet/pulumi-plugin.json
generated
4
sdk/dotnet/pulumi-plugin.json
generated
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"resource": true,
|
||||
"name": "docker-native",
|
||||
"server": "github.com/pulumi/pulumi-docker-native"
|
||||
"name": "dockerbuild",
|
||||
"server": "github.com/pulumi/pulumi-dockerbuild"
|
||||
}
|
||||
|
||||
1
sdk/dotnet/version.txt
generated
1
sdk/dotnet/version.txt
generated
@@ -1 +0,0 @@
|
||||
0.0.1-alpha.1709848295+3427e611.dirty
|
||||
Reference in New Issue
Block a user