Skip to content

Commit

Permalink
Upgrade terraform-provider-exoscale to v0.51.0 (#181)
Browse files Browse the repository at this point in the history
* make tfgen

* make build_sdks
  • Loading branch information
dirien authored Aug 14, 2023
1 parent 64fb4d7 commit 7b04101
Show file tree
Hide file tree
Showing 88 changed files with 1,175 additions and 288 deletions.
2 changes: 2 additions & 0 deletions .upgrade-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
upstream-provider-name: terraform-provider-exoscale
allow-missing-docs: true
94 changes: 56 additions & 38 deletions provider/cmd/pulumi-resource-exoscale/schema.json

Large diffs are not rendered by default.

31 changes: 16 additions & 15 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ module github.com/pulumiverse/pulumi-exoscale/provider

go 1.19

replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20230327102345-3fa930f86570
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20230710100801-03a71d0fca3d

require (
github.com/exoscale/terraform-provider-exoscale v0.50.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.56.1
github.com/exoscale/terraform-provider-exoscale v0.51.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0
github.com/pulumi/pulumi/sdk/v3 v3.77.1
)

require (
cloud.google.com/go v0.110.0 // indirect
cloud.google.com/go/compute v1.19.1 // indirect
cloud.google.com/go v0.110.4 // indirect
cloud.google.com/go/compute v1.20.1 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v0.13.0 // indirect
cloud.google.com/go/kms v1.10.1 // indirect
cloud.google.com/go/iam v1.1.1 // indirect
cloud.google.com/go/kms v1.12.1 // indirect
cloud.google.com/go/logging v1.7.0 // indirect
cloud.google.com/go/longrunning v0.4.1 // indirect
cloud.google.com/go/storage v1.29.0 // indirect
cloud.google.com/go/longrunning v0.5.1 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
github.com/AlecAivazis/survey/v2 v2.0.5 // indirect
github.com/Azure/azure-sdk-for-go v66.0.0+incompatible // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 // indirect
Expand Down Expand Up @@ -100,11 +100,12 @@ require (
github.com/golang/snappy v0.0.4 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/s2a-go v0.1.4 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/wire v0.5.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
github.com/googleapis/gax-go/v2 v2.7.1 // indirect
github.com/googleapis/gax-go/v2 v2.11.0 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
Expand Down Expand Up @@ -179,7 +180,7 @@ require (
github.com/pulumi/pulumi-java/pkg v0.9.4 // indirect
github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect
github.com/pulumi/pulumi-yaml v1.1.1 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.76.1 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.77.1 // indirect
github.com/pulumi/schema-tools v0.1.2 // indirect
github.com/pulumi/terraform-diff-reader v0.0.2 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
Expand Down Expand Up @@ -219,17 +220,17 @@ require (
golang.org/x/crypto v0.10.0 // indirect
golang.org/x/mod v0.10.0 // indirect
golang.org/x/net v0.11.0 // indirect
golang.org/x/oauth2 v0.7.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/sync v0.2.0 // indirect
golang.org/x/sys v0.9.0 // indirect
golang.org/x/term v0.9.0 // indirect
golang.org/x/text v0.10.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.114.0 // indirect
google.golang.org/api v0.126.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e // indirect
google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect
google.golang.org/grpc v1.57.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
Expand Down
677 changes: 640 additions & 37 deletions provider/go.sum

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sdk/dotnet/Compute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public partial class Compute : global::Pulumi.CustomResource
public Output<string> TemplateId { get; private set; } = null!;

/// <summary>
/// cloud-init configuration (no need to base64-encode or gzip it as the provider will take care of it).
/// cloud-init configuration.
/// </summary>
[Output("userData")]
public Output<string?> UserData { get; private set; } = null!;
Expand Down Expand Up @@ -358,7 +358,7 @@ public InputMap<string> Tags
public Input<string>? TemplateId { get; set; }

/// <summary>
/// cloud-init configuration (no need to base64-encode or gzip it as the provider will take care of it).
/// cloud-init configuration.
/// </summary>
[Input("userData")]
public Input<string>? UserData { get; set; }
Expand Down Expand Up @@ -550,7 +550,7 @@ public InputMap<string> Tags
public Input<string>? TemplateId { get; set; }

/// <summary>
/// cloud-init configuration (no need to base64-encode or gzip it as the provider will take care of it).
/// cloud-init configuration.
/// </summary>
[Input("userData")]
public Input<string>? UserData { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions sdk/dotnet/ComputeInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public partial class ComputeInstance : global::Pulumi.CustomResource
public Output<string> Type { get; private set; } = null!;

/// <summary>
/// [cloud-init](https://cloudinit.readthedocs.io/) configuration (no need to base64-encode or gzip it as the provider will take care of it).
/// [cloud-init](https://cloudinit.readthedocs.io/) configuration.
/// </summary>
[Output("userData")]
public Output<string?> UserData { get; private set; } = null!;
Expand Down Expand Up @@ -320,7 +320,7 @@ public InputList<string> SecurityGroupIds
public Input<string> Type { get; set; } = null!;

/// <summary>
/// [cloud-init](https://cloudinit.readthedocs.io/) configuration (no need to base64-encode or gzip it as the provider will take care of it).
/// [cloud-init](https://cloudinit.readthedocs.io/) configuration.
/// </summary>
[Input("userData")]
public Input<string>? UserData { get; set; }
Expand Down Expand Up @@ -491,7 +491,7 @@ public InputList<string> SecurityGroupIds
public Input<string>? Type { get; set; }

/// <summary>
/// [cloud-init](https://cloudinit.readthedocs.io/) configuration (no need to base64-encode or gzip it as the provider will take care of it).
/// [cloud-init](https://cloudinit.readthedocs.io/) configuration.
/// </summary>
[Input("userData")]
public Input<string>? UserData { get; set; }
Expand Down
10 changes: 0 additions & 10 deletions sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ public static string? Environment
set => _environment.Set(value);
}

private static readonly __Value<bool?> _gzipUserData = new __Value<bool?>(() => __config.GetBoolean("gzipUserData"));
/// <summary>
/// Defines if the user-data of compute instances should be gzipped (by default: true)
/// </summary>
public static bool? GzipUserData
{
get => _gzipUserData.Get();
set => _gzipUserData.Set(value);
}

private static readonly __Value<string?> _key = new __Value<string?>(() => __config.Get("key"));
/// <summary>
/// Exoscale API key
Expand Down
2 changes: 2 additions & 0 deletions sdk/dotnet/GetDatabaseURI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static class GetDatabaseURI
/// {
/// Name = "my-database",
/// Type = "pg",
/// Zone = "ch-gva-2",
/// });
///
/// return new Dictionary&lt;string, object?&gt;
Expand Down Expand Up @@ -112,6 +113,7 @@ public static Task<GetDatabaseURIResult> InvokeAsync(GetDatabaseURIArgs args, In
/// {
/// Name = "my-database",
/// Type = "pg",
/// Zone = "ch-gva-2",
/// });
///
/// return new Dictionary&lt;string, object?&gt;
Expand Down
19 changes: 19 additions & 0 deletions sdk/dotnet/GetSKSNodepool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ public List<string> SecurityGroupIds
[Input("state")]
public string? State { get; set; }

/// <summary>
/// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
/// </summary>
[Input("storageLvm")]
public bool? StorageLvm { get; set; }

[Input("taints")]
private Dictionary<string, string>? _taints;

Expand Down Expand Up @@ -279,6 +285,12 @@ public InputList<string> SecurityGroupIds
[Input("state")]
public Input<string>? State { get; set; }

/// <summary>
/// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
/// </summary>
[Input("storageLvm")]
public Input<bool>? StorageLvm { get; set; }

[Input("taints")]
private InputMap<string>? _taints;

Expand Down Expand Up @@ -372,6 +384,10 @@ public sealed class GetSKSNodepoolResult
/// </summary>
public readonly string State;
/// <summary>
/// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
/// </summary>
public readonly bool? StorageLvm;
/// <summary>
/// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`&lt;value&gt;:&lt;effect&gt;`).
/// </summary>
public readonly ImmutableDictionary<string, string>? Taints;
Expand Down Expand Up @@ -419,6 +435,8 @@ private GetSKSNodepoolResult(

string state,

bool? storageLvm,

ImmutableDictionary<string, string>? taints,

string templateId,
Expand All @@ -443,6 +461,7 @@ private GetSKSNodepoolResult(
SecurityGroupIds = securityGroupIds;
Size = size;
State = state;
StorageLvm = storageLvm;
Taints = taints;
TemplateId = templateId;
Version = version;
Expand Down
19 changes: 19 additions & 0 deletions sdk/dotnet/GetSKSNodepoolList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ public Dictionary<string, string> Labels
[Input("state")]
public string? State { get; set; }

/// <summary>
/// Match against this bool
/// </summary>
[Input("storageLvm")]
public bool? StorageLvm { get; set; }

[Input("taints")]
private Dictionary<string, string>? _taints;

Expand Down Expand Up @@ -228,6 +234,12 @@ public InputMap<string> Labels
[Input("state")]
public Input<string>? State { get; set; }

/// <summary>
/// Match against this bool
/// </summary>
[Input("storageLvm")]
public Input<bool>? StorageLvm { get; set; }

[Input("taints")]
private InputMap<string>? _taints;

Expand Down Expand Up @@ -322,6 +334,10 @@ public sealed class GetSKSNodepoolListResult
/// </summary>
public readonly string? State;
/// <summary>
/// Match against this bool
/// </summary>
public readonly bool? StorageLvm;
/// <summary>
/// Match against key/values. Keys are matched exactly, while values may be matched as a regex if you supply a string that begins and ends with "/"
/// </summary>
public readonly ImmutableDictionary<string, string>? Taints;
Expand Down Expand Up @@ -368,6 +384,8 @@ private GetSKSNodepoolListResult(

string? state,

bool? storageLvm,

ImmutableDictionary<string, string>? taints,

string? templateId,
Expand All @@ -390,6 +408,7 @@ private GetSKSNodepoolListResult(
Nodepools = nodepools;
Size = size;
State = state;
StorageLvm = storageLvm;
Taints = taints;
TemplateId = templateId;
Version = version;
Expand Down
6 changes: 3 additions & 3 deletions sdk/dotnet/InstancePool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public partial class InstancePool : global::Pulumi.CustomResource
public Output<string> TemplateId { get; private set; } = null!;

/// <summary>
/// [cloud-init](http://cloudinit.readthedocs.io/) configuration to apply to the managed instances (no need to base64-encode or gzip it as the provider will take care of it).
/// [cloud-init](http://cloudinit.readthedocs.io/) configuration to apply to the managed instances.
/// </summary>
[Output("userData")]
public Output<string?> UserData { get; private set; } = null!;
Expand Down Expand Up @@ -338,7 +338,7 @@ public InputList<string> SecurityGroupIds
public Input<string> TemplateId { get; set; } = null!;

/// <summary>
/// [cloud-init](http://cloudinit.readthedocs.io/) configuration to apply to the managed instances (no need to base64-encode or gzip it as the provider will take care of it).
/// [cloud-init](http://cloudinit.readthedocs.io/) configuration to apply to the managed instances.
/// </summary>
[Input("userData")]
public Input<string>? UserData { get; set; }
Expand Down Expand Up @@ -512,7 +512,7 @@ public InputList<string> SecurityGroupIds
public Input<string>? TemplateId { get; set; }

/// <summary>
/// [cloud-init](http://cloudinit.readthedocs.io/) configuration to apply to the managed instances (no need to base64-encode or gzip it as the provider will take care of it).
/// [cloud-init](http://cloudinit.readthedocs.io/) configuration to apply to the managed instances.
/// </summary>
[Input("userData")]
public Input<string>? UserData { get; set; }
Expand Down
7 changes: 7 additions & 0 deletions sdk/dotnet/Outputs/GetSKSNodepoolListNodepoolResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public sealed class GetSKSNodepoolListNodepoolResult
/// </summary>
public readonly string State;
/// <summary>
/// Match against this bool
/// </summary>
public readonly bool? StorageLvm;
/// <summary>
/// Match against key/values. Keys are matched exactly, while values may be matched as a regex if you supply a string that begins and ends with "/"
/// </summary>
public readonly ImmutableDictionary<string, string>? Taints;
Expand Down Expand Up @@ -120,6 +124,8 @@ private GetSKSNodepoolListNodepoolResult(

string state,

bool? storageLvm,

ImmutableDictionary<string, string>? taints,

string templateId,
Expand All @@ -144,6 +150,7 @@ private GetSKSNodepoolListNodepoolResult(
SecurityGroupIds = securityGroupIds;
Size = size;
State = state;
StorageLvm = storageLvm;
Taints = taints;
TemplateId = templateId;
Version = version;
Expand Down
6 changes: 0 additions & 6 deletions sdk/dotnet/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,6 @@ public sealed class ProviderArgs : global::Pulumi.ResourceArgs
[Input("environment")]
public Input<string>? Environment { get; set; }

/// <summary>
/// Defines if the user-data of compute instances should be gzipped (by default: true)
/// </summary>
[Input("gzipUserData", json: true)]
public Input<bool>? GzipUserData { get; set; }

/// <summary>
/// Exoscale API key
/// </summary>
Expand Down
18 changes: 18 additions & 0 deletions sdk/dotnet/SKSNodepool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ public partial class SKSNodepool : global::Pulumi.CustomResource
[Output("state")]
public Output<string> State { get; private set; } = null!;

/// <summary>
/// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
/// </summary>
[Output("storageLvm")]
public Output<bool?> StorageLvm { get; private set; } = null!;

/// <summary>
/// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) (`&lt;value&gt;:&lt;effect&gt;`).
/// </summary>
Expand Down Expand Up @@ -277,6 +283,12 @@ public InputList<string> SecurityGroupIds
[Input("size", required: true)]
public Input<int> Size { get; set; } = null!;

/// <summary>
/// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
/// </summary>
[Input("storageLvm")]
public Input<bool>? StorageLvm { get; set; }

[Input("taints")]
private InputMap<string>? _taints;

Expand Down Expand Up @@ -414,6 +426,12 @@ public InputList<string> SecurityGroupIds
[Input("state")]
public Input<string>? State { get; set; }

/// <summary>
/// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
/// </summary>
[Input("storageLvm")]
public Input<bool>? StorageLvm { get; set; }

[Input("taints")]
private InputMap<string>? _taints;

Expand Down
3 changes: 2 additions & 1 deletion sdk/go/exoscale/affinity.go

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

Loading

0 comments on commit 7b04101

Please sign in to comment.