Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade terraform-provider-civo to v1.0.30 #182

Merged
merged 2 commits into from
Feb 17, 2023
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
15 changes: 14 additions & 1 deletion provider/cmd/pulumi-resource-civo/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2399,6 +2399,10 @@
"type": "string",
"description": "Comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side of the comma. Application names are case-sensitive; the available applications can be listed with the Civo CLI: 'civo kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik. For application that supports plans, you can use 'app*name:app*plan' format e.g. 'Linkerd:Linkerd \u0026 Jaeger' or 'MariaDB:5GB'.\n"
},
"clusterType": {
"type": "string",
"description": "The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s`\n"
},
"cni": {
"type": "string",
"description": "The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`\n"
Expand Down Expand Up @@ -2474,6 +2478,7 @@
},
"required": [
"apiEndpoint",
"clusterType",
"cni",
"createdAt",
"dnsEntry",
Expand All @@ -2496,6 +2501,10 @@
"type": "string",
"description": "Comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side of the comma. Application names are case-sensitive; the available applications can be listed with the Civo CLI: 'civo kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik. For application that supports plans, you can use 'app*name:app*plan' format e.g. 'Linkerd:Linkerd \u0026 Jaeger' or 'MariaDB:5GB'.\n"
},
"clusterType": {
"type": "string",
"description": "The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s`\n"
},
"cni": {
"type": "string",
"description": "The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`\n"
Expand Down Expand Up @@ -2553,6 +2562,10 @@
"type": "string",
"description": "Comma separated list of applications to install. Spaces within application names are fine, but shouldn't be either side of the comma. Application names are case-sensitive; the available applications can be listed with the Civo CLI: 'civo kubernetes applications ls'. If you want to remove a default installed application, prefix it with a '-', e.g. -Traefik. For application that supports plans, you can use 'app*name:app*plan' format e.g. 'Linkerd:Linkerd \u0026 Jaeger' or 'MariaDB:5GB'.\n"
},
"clusterType": {
"type": "string",
"description": "The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s`\n"
},
"cni": {
"type": "string",
"description": "The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`\n"
Expand Down Expand Up @@ -3913,7 +3926,7 @@
}
},
"civo:index/getKubernetesVersion:getKubernetesVersion": {
"description": "Provides access to the available Civo Kubernetes versions, with the ability to filter the results.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\nconst stable = civo.getKubernetesVersion({\n filters: [{\n key: \"type\",\n values: [\"stable\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\nstable = civo.get_kubernetes_version(filters=[civo.GetKubernetesVersionFilterArgs(\n key=\"type\",\n values=[\"stable\"],\n)])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var stable = Civo.GetKubernetesVersion.Invoke(new()\n {\n Filters = new[]\n {\n new Civo.Inputs.GetKubernetesVersionFilterInputArgs\n {\n Key = \"type\",\n Values = new[]\n {\n \"stable\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := civo.GetKubernetesVersion(ctx, \u0026civo.GetKubernetesVersionArgs{\n\t\t\tFilters: []civo.GetKubernetesVersionFilter{\n\t\t\t\t{\n\t\t\t\t\tKey: \"type\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"stable\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.CivoFunctions;\nimport com.pulumi.civo.inputs.GetKubernetesVersionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var stable = CivoFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()\n .filters(GetKubernetesVersionFilterArgs.builder()\n .key(\"type\")\n .values(\"stable\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n stable:\n fn::invoke:\n Function: civo:getKubernetesVersion\n Arguments:\n filters:\n - key: type\n values:\n - stable\n```\n{{% /example %}}\n{{% /examples %}}",
"description": "Provides access to the available Civo Kubernetes versions, with the ability to filter the results.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as civo from \"@pulumi/civo\";\n\nconst talos = civo.getKubernetesVersion({\n filters: [{\n key: \"type\",\n values: [\"talos\"],\n }],\n});\nconst k3s = civo.getKubernetesVersion({\n filters: [{\n key: \"type\",\n values: [\"k3s\"],\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_civo as civo\n\ntalos = civo.get_kubernetes_version(filters=[civo.GetKubernetesVersionFilterArgs(\n key=\"type\",\n values=[\"talos\"],\n)])\nk3s = civo.get_kubernetes_version(filters=[civo.GetKubernetesVersionFilterArgs(\n key=\"type\",\n values=[\"k3s\"],\n)])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing Civo = Pulumi.Civo;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var talos = Civo.GetKubernetesVersion.Invoke(new()\n {\n Filters = new[]\n {\n new Civo.Inputs.GetKubernetesVersionFilterInputArgs\n {\n Key = \"type\",\n Values = new[]\n {\n \"talos\",\n },\n },\n },\n });\n\n var k3s = Civo.GetKubernetesVersion.Invoke(new()\n {\n Filters = new[]\n {\n new Civo.Inputs.GetKubernetesVersionFilterInputArgs\n {\n Key = \"type\",\n Values = new[]\n {\n \"k3s\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-civo/sdk/v2/go/civo\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := civo.GetKubernetesVersion(ctx, \u0026civo.GetKubernetesVersionArgs{\n\t\t\tFilters: []civo.GetKubernetesVersionFilter{\n\t\t\t\t{\n\t\t\t\t\tKey: \"type\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"talos\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = civo.GetKubernetesVersion(ctx, \u0026civo.GetKubernetesVersionArgs{\n\t\t\tFilters: []civo.GetKubernetesVersionFilter{\n\t\t\t\t{\n\t\t\t\t\tKey: \"type\",\n\t\t\t\t\tValues: []string{\n\t\t\t\t\t\t\"k3s\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.civo.CivoFunctions;\nimport com.pulumi.civo.inputs.GetKubernetesVersionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var talos = CivoFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()\n .filters(GetKubernetesVersionFilterArgs.builder()\n .key(\"type\")\n .values(\"talos\")\n .build())\n .build());\n\n final var k3s = CivoFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()\n .filters(GetKubernetesVersionFilterArgs.builder()\n .key(\"type\")\n .values(\"k3s\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n talos:\n fn::invoke:\n Function: civo:getKubernetesVersion\n Arguments:\n filters:\n - key: type\n values:\n - talos\n k3s:\n fn::invoke:\n Function: civo:getKubernetesVersion\n Arguments:\n filters:\n - key: type\n values:\n - k3s\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
"description": "A collection of arguments for invoking getKubernetesVersion.\n",
"properties": {
Expand Down
4 changes: 2 additions & 2 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ replace (
)

require (
github.com/civo/terraform-provider-civo v1.0.29
github.com/civo/terraform-provider-civo v1.0.30
github.com/pulumi/pulumi-terraform-bridge/v3 v3.40.0
github.com/pulumi/pulumi/sdk/v3 v3.53.1
)
Expand Down Expand Up @@ -75,7 +75,7 @@ require (
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/cenkalti/backoff/v3 v3.2.2 // indirect
github.com/cheggaaa/pb v1.0.29 // indirect
github.com/civo/civogo v0.3.23 // indirect
github.com/civo/civogo v0.3.24 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/djherbis/times v1.5.0 // indirect
Expand Down
8 changes: 4 additions & 4 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,10 @@ github.com/cilium/ebpf v0.6.2/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJ
github.com/cilium/ebpf v0.7.0/go.mod h1:/oI2+1shJiTGAMgl6/RgJr36Eo1jzrRcAWbcXO2usCA=
github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag=
github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
github.com/civo/civogo v0.3.23 h1:FTSad682Qu7CsjkNAYWpSe2CSR1NJOE2NRxc6gUzHDk=
github.com/civo/civogo v0.3.23/go.mod h1:SbS06e0JPgIF27r1sLC97gjU1xWmONQeHgzF1hfLpak=
github.com/civo/terraform-provider-civo v1.0.29 h1:5txSGjBVqUxoz+MUD/PWj+GOtXm9/QmkvMIWN+BIa7I=
github.com/civo/terraform-provider-civo v1.0.29/go.mod h1:8p4dNLqhojC5vxgOzdFCwf029+90Yk7oA0w2vF4z+ls=
github.com/civo/civogo v0.3.24 h1:7kXEhtVUFkWIunNePqPCcIUilOktnXLWrKfi5sDqBNQ=
github.com/civo/civogo v0.3.24/go.mod h1:SbS06e0JPgIF27r1sLC97gjU1xWmONQeHgzF1hfLpak=
github.com/civo/terraform-provider-civo v1.0.30 h1:XKzxFATFOerYBy87V0Jq/xQq1k7HPoXgNYM60fgIoDo=
github.com/civo/terraform-provider-civo v1.0.30/go.mod h1:BjDIOtT7HxKUpXXYbseTr57haNzVw8raVJcWRONRnP0=
github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
Expand Down
38 changes: 34 additions & 4 deletions sdk/dotnet/GetKubernetesVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static class GetKubernetesVersion
///
/// return await Deployment.RunAsync(() =>
/// {
/// var stable = Civo.GetKubernetesVersion.Invoke(new()
/// var talos = Civo.GetKubernetesVersion.Invoke(new()
/// {
/// Filters = new[]
/// {
Expand All @@ -34,7 +34,22 @@ public static class GetKubernetesVersion
/// Key = "type",
/// Values = new[]
/// {
/// "stable",
/// "talos",
/// },
/// },
/// },
/// });
///
/// var k3s = Civo.GetKubernetesVersion.Invoke(new()
/// {
/// Filters = new[]
/// {
/// new Civo.Inputs.GetKubernetesVersionFilterInputArgs
/// {
/// Key = "type",
/// Values = new[]
/// {
/// "k3s",
/// },
/// },
/// },
Expand Down Expand Up @@ -62,7 +77,22 @@ public static Task<GetKubernetesVersionResult> InvokeAsync(GetKubernetesVersionA
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var stable = Civo.GetKubernetesVersion.Invoke(new()
/// var talos = Civo.GetKubernetesVersion.Invoke(new()
/// {
/// Filters = new[]
/// {
/// new Civo.Inputs.GetKubernetesVersionFilterInputArgs
/// {
/// Key = "type",
/// Values = new[]
/// {
/// "talos",
/// },
/// },
/// },
/// });
///
/// var k3s = Civo.GetKubernetesVersion.Invoke(new()
/// {
/// Filters = new[]
/// {
Expand All @@ -71,7 +101,7 @@ public static Task<GetKubernetesVersionResult> InvokeAsync(GetKubernetesVersionA
/// Key = "type",
/// Values = new[]
/// {
/// "stable",
/// "k3s",
/// },
/// },
/// },
Expand Down
18 changes: 18 additions & 0 deletions sdk/dotnet/KubernetesCluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public partial class KubernetesCluster : global::Pulumi.CustomResource
[Output("applications")]
public Output<string?> Applications { get; private set; } = null!;

/// <summary>
/// The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s`
/// </summary>
[Output("clusterType")]
public Output<string> ClusterType { get; private set; } = null!;

/// <summary>
/// The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`
/// </summary>
Expand Down Expand Up @@ -187,6 +193,12 @@ public sealed class KubernetesClusterArgs : global::Pulumi.ResourceArgs
[Input("applications")]
public Input<string>? Applications { get; set; }

/// <summary>
/// The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s`
/// </summary>
[Input("clusterType")]
public Input<string>? ClusterType { get; set; }

/// <summary>
/// The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`
/// </summary>
Expand Down Expand Up @@ -264,6 +276,12 @@ public sealed class KubernetesClusterState : global::Pulumi.ResourceArgs
[Input("applications")]
public Input<string>? Applications { get; set; }

/// <summary>
/// The type of cluster to create, valid options are `k3s` or `talos` the default is `k3s`
/// </summary>
[Input("clusterType")]
public Input<string>? ClusterType { get; set; }

/// <summary>
/// The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`
/// </summary>
Expand Down
15 changes: 14 additions & 1 deletion sdk/go/civo/getKubernetesVersion.go

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

Loading