Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Unshallow to restore tags
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: 1.23.x
go-version-file: sdk/go.mod
- name: Set up .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
dotnet-version: '9.0.x'
- name: Set up NodeJS
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
always-auth: true
- name: Install pulumictl
run: curl -L https://github.com/pulumi/pulumictl/releases/download/v0.0.46/pulumictl-v0.0.46-linux-amd64.tar.gz | sudo tar zxv -C /usr/bin -f- pulumictl
run: curl -L https://github.com/pulumi/pulumictl/releases/download/v0.0.49/pulumictl-v0.0.49-linux-amd64.tar.gz | sudo tar zxv -C /usr/bin -f- pulumictl
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push NuGet package
run: |
dotnet nuget push nuget/**/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
dotnet nuget push nuget/**/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.PULUMI_NUGET_KEY }}
- name: Publish NPM package
run: (cd ${{ github.workspace }}/sdk/nodejs/bin && yarn publish --access public)
env:
Expand Down
23 changes: 2 additions & 21 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
version: "2"
linters:
enable:
- deadcode
- errcheck
- goconst
- gofmt
- golint
- gosec
- govet
- ineffassign
- interfacer
- lll
- megacheck
- misspell
- nakedret
- structcheck
- unconvert
- varcheck
enable-all: false
default: standard
run:
skip-files:
- schema.go
- pulumiManifest.go
timeout: 10m
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "pulumi-eventstorecloud",
"version": "0.0.1",
"repository": "git@github.com/EventStore/pulumi-eventstorecloud",
"author": "Brock Shelton <brock.shelton@eventstore.com>",
"version": "0.2.18",
"repository": "git@github.com/kurrent-io/pulumi-eventstorecloud",
"author": "Kurrent Cloud Team <cloud@kurrent.io>",
"license": "Apache-2.0",
"dependencies": {
"js-yaml": "^4.1.0",
"markdownlint": "^0.28.0"
}
}
}
130 changes: 123 additions & 7 deletions provider/cmd/pulumi-resource-eventstorecloud/schema.json

Large diffs are not rendered by default.

144 changes: 144 additions & 0 deletions sdk/dotnet/Acl.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.EventStoreCloud
{
/// <summary>
/// Manages IP Access Lists
/// </summary>
[EventStoreCloudResourceType("eventstorecloud:index/acl:Acl")]
public partial class Acl : global::Pulumi.CustomResource
{
/// <summary>
/// CIDR blocks allowed by the IP access list
/// </summary>
[Output("cidrBlocks")]
public Output<ImmutableArray<ImmutableDictionary<string, object>>> CidrBlocks { get; private set; } = null!;

/// <summary>
/// Human-friendly name for the Acl
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;

/// <summary>
/// Project ID
/// </summary>
[Output("projectId")]
public Output<string> ProjectId { get; private set; } = null!;


/// <summary>
/// Create a Acl resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <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 Acl(string name, AclArgs args, CustomResourceOptions? options = null)
: base("eventstorecloud:index/acl:Acl", name, args ?? new AclArgs(), MakeResourceOptions(options, ""))
{
}

private Acl(string name, Input<string> id, AclState? state = null, CustomResourceOptions? options = null)
: base("eventstorecloud:index/acl:Acl", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "github://api.github.com/EventStore",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing Acl resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static Acl Get(string name, Input<string> id, AclState? state = null, CustomResourceOptions? options = null)
{
return new Acl(name, id, state, options);
}
}

public sealed class AclArgs : global::Pulumi.ResourceArgs
{
[Input("cidrBlocks", required: true)]
private InputList<ImmutableDictionary<string, object>>? _cidrBlocks;

/// <summary>
/// CIDR blocks allowed by the IP access list
/// </summary>
public InputList<ImmutableDictionary<string, object>> CidrBlocks
{
get => _cidrBlocks ?? (_cidrBlocks = new InputList<ImmutableDictionary<string, object>>());
set => _cidrBlocks = value;
}

/// <summary>
/// Human-friendly name for the Acl
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// Project ID
/// </summary>
[Input("projectId", required: true)]
public Input<string> ProjectId { get; set; } = null!;

public AclArgs()
{
}
public static new AclArgs Empty => new AclArgs();
}

public sealed class AclState : global::Pulumi.ResourceArgs
{
[Input("cidrBlocks")]
private InputList<ImmutableDictionary<string, object>>? _cidrBlocks;

/// <summary>
/// CIDR blocks allowed by the IP access list
/// </summary>
public InputList<ImmutableDictionary<string, object>> CidrBlocks
{
get => _cidrBlocks ?? (_cidrBlocks = new InputList<ImmutableDictionary<string, object>>());
set => _cidrBlocks = value;
}

/// <summary>
/// Human-friendly name for the Acl
/// </summary>
[Input("name")]
public Input<string>? Name { get; set; }

/// <summary>
/// Project ID
/// </summary>
[Input("projectId")]
public Input<string>? ProjectId { get; set; }

public AclState()
{
}
public static new AclState Empty => new AclState();
}
}
42 changes: 39 additions & 3 deletions sdk/dotnet/ManagedCluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ namespace Pulumi.EventStoreCloud
[EventStoreCloudResourceType("eventstorecloud:index/managedCluster:ManagedCluster")]
public partial class ManagedCluster : global::Pulumi.CustomResource
{
/// <summary>
/// ID of the ACL if using public access
/// </summary>
[Output("aclId")]
public Output<string?> AclId { get; private set; } = null!;

/// <summary>
/// Number of IOPS for storage, required if disk_type is `gp3`
/// </summary>
Expand Down Expand Up @@ -91,7 +97,7 @@ public partial class ManagedCluster : global::Pulumi.CustomResource
public Output<string> DnsName { get; private set; } = null!;

/// <summary>
/// Instance type of the managed cluster (find the list of valid values below)
/// Instance type of the managed cluster (find the list of valid values below). A different instance type will trigger a resize operation.
/// </summary>
[Output("instanceType")]
public Output<string> InstanceType { get; private set; } = null!;
Expand Down Expand Up @@ -126,6 +132,12 @@ public partial class ManagedCluster : global::Pulumi.CustomResource
[Output("protected")]
public Output<bool?> Protected { get; private set; } = null!;

/// <summary>
/// If true, the cluster is provisioned with a public endpoint
/// </summary>
[Output("publicAccess")]
public Output<bool?> PublicAccess { get; private set; } = null!;

/// <summary>
/// Region in which the cluster was created. Determined by the region of the Network
/// </summary>
Expand Down Expand Up @@ -203,6 +215,12 @@ public static ManagedCluster Get(string name, Input<string> id, ManagedClusterSt

public sealed class ManagedClusterArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// ID of the ACL if using public access
/// </summary>
[Input("aclId")]
public Input<string>? AclId { get; set; }

/// <summary>
/// Number of IOPS for storage, required if disk_type is `gp3`
/// </summary>
Expand All @@ -228,7 +246,7 @@ public sealed class ManagedClusterArgs : global::Pulumi.ResourceArgs
public Input<string> DiskType { get; set; } = null!;

/// <summary>
/// Instance type of the managed cluster (find the list of valid values below)
/// Instance type of the managed cluster (find the list of valid values below). A different instance type will trigger a resize operation.
/// </summary>
[Input("instanceType", required: true)]
public Input<string> InstanceType { get; set; } = null!;
Expand Down Expand Up @@ -263,6 +281,12 @@ public sealed class ManagedClusterArgs : global::Pulumi.ResourceArgs
[Input("protected")]
public Input<bool>? Protected { get; set; }

/// <summary>
/// If true, the cluster is provisioned with a public endpoint
/// </summary>
[Input("publicAccess")]
public Input<bool>? PublicAccess { get; set; }

/// <summary>
/// Server version to provision (find the list of valid values below)
/// </summary>
Expand All @@ -289,6 +313,12 @@ public ManagedClusterArgs()

public sealed class ManagedClusterState : global::Pulumi.ResourceArgs
{
/// <summary>
/// ID of the ACL if using public access
/// </summary>
[Input("aclId")]
public Input<string>? AclId { get; set; }

/// <summary>
/// Number of IOPS for storage, required if disk_type is `gp3`
/// </summary>
Expand Down Expand Up @@ -320,7 +350,7 @@ public sealed class ManagedClusterState : global::Pulumi.ResourceArgs
public Input<string>? DnsName { get; set; }

/// <summary>
/// Instance type of the managed cluster (find the list of valid values below)
/// Instance type of the managed cluster (find the list of valid values below). A different instance type will trigger a resize operation.
/// </summary>
[Input("instanceType")]
public Input<string>? InstanceType { get; set; }
Expand Down Expand Up @@ -355,6 +385,12 @@ public sealed class ManagedClusterState : global::Pulumi.ResourceArgs
[Input("protected")]
public Input<bool>? Protected { get; set; }

/// <summary>
/// If true, the cluster is provisioned with a public endpoint
/// </summary>
[Input("publicAccess")]
public Input<bool>? PublicAccess { get; set; }

/// <summary>
/// Region in which the cluster was created. Determined by the region of the Network
/// </summary>
Expand Down
24 changes: 21 additions & 3 deletions sdk/dotnet/Network.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public partial class Network : global::Pulumi.CustomResource
/// Address space of the network in CIDR block notation
/// </summary>
[Output("cidrBlock")]
public Output<string> CidrBlock { get; private set; } = null!;
public Output<string?> CidrBlock { get; private set; } = null!;

/// <summary>
/// Human-friendly name for the network
Expand All @@ -62,6 +62,12 @@ public partial class Network : global::Pulumi.CustomResource
[Output("projectId")]
public Output<string> ProjectId { get; private set; } = null!;

/// <summary>
/// Whether the network is able to be accessed from the public internet
/// </summary>
[Output("publicAccess")]
public Output<bool?> PublicAccess { get; private set; } = null!;

/// <summary>
/// Provider region in which to provision the network
/// </summary>
Expand Down Expand Up @@ -124,8 +130,8 @@ public sealed class NetworkArgs : global::Pulumi.ResourceArgs
/// <summary>
/// Address space of the network in CIDR block notation
/// </summary>
[Input("cidrBlock", required: true)]
public Input<string> CidrBlock { get; set; } = null!;
[Input("cidrBlock")]
public Input<string>? CidrBlock { get; set; }

/// <summary>
/// Human-friendly name for the network
Expand All @@ -139,6 +145,12 @@ public sealed class NetworkArgs : global::Pulumi.ResourceArgs
[Input("projectId", required: true)]
public Input<string> ProjectId { get; set; } = null!;

/// <summary>
/// Whether the network is able to be accessed from the public internet
/// </summary>
[Input("publicAccess")]
public Input<bool>? PublicAccess { get; set; }

/// <summary>
/// Provider region in which to provision the network
/// </summary>
Expand Down Expand Up @@ -177,6 +189,12 @@ public sealed class NetworkState : global::Pulumi.ResourceArgs
[Input("projectId")]
public Input<string>? ProjectId { get; set; }

/// <summary>
/// Whether the network is able to be accessed from the public internet
/// </summary>
[Input("publicAccess")]
public Input<bool>? PublicAccess { get; set; }

/// <summary>
/// Provider region in which to provision the network
/// </summary>
Expand Down
Loading
Loading