diff --git a/Makefile b/Makefile index e1db1c919c..eb095db3c6 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ PROVIDER := pulumi-resource-${PACK} CODEGEN := pulumi-gen-${PACK} VERSION ?= $(shell scripts/get-version) PYPI_VERSION := $(shell scripts/get-py-version) -KUBE_VERSION ?= v1.18.0-beta.2 +KUBE_VERSION ?= v1.18.0-rc.1 SWAGGER_URL ?= https://github.com/kubernetes/kubernetes/raw/${KUBE_VERSION}/api/openapi-spec/swagger.json OPENAPI_DIR := pkg/gen/openapi-specs OPENAPI_FILE := ${OPENAPI_DIR}/swagger-${KUBE_VERSION}.json diff --git a/sdk/dotnet/Networking/V1Beta1/IngressClass.cs b/sdk/dotnet/Networking/V1Beta1/IngressClass.cs index 67e4e1d632..aa207f961c 100755 --- a/sdk/dotnet/Networking/V1Beta1/IngressClass.cs +++ b/sdk/dotnet/Networking/V1Beta1/IngressClass.cs @@ -56,7 +56,7 @@ public partial class IngressClass : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public IngressClass(string name, Types.Inputs.Networking.V1Beta1.IngressClassArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:networking.k8s.io/v1beta1:IngressClass", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:networking.k8s.io/v1beta1:IngressClass", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -73,6 +73,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Networking.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing IngressClass resource's state with the given name and ID. /// @@ -84,6 +89,5 @@ public static IngressClass Get(string name, Input id, CustomResourceOpti return new IngressClass(name, default(Types.Inputs.Networking.V1Beta1.IngressClassArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Networking/V1Beta1/IngressClassList.cs b/sdk/dotnet/Networking/V1Beta1/IngressClassList.cs index f82924dc3a..643f466b98 100755 --- a/sdk/dotnet/Networking/V1Beta1/IngressClassList.cs +++ b/sdk/dotnet/Networking/V1Beta1/IngressClassList.cs @@ -50,7 +50,7 @@ public partial class IngressClassList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public IngressClassList(string name, Types.Inputs.Networking.V1Beta1.IngressClassListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:networking.k8s.io/v1beta1:IngressClassList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:networking.k8s.io/v1beta1:IngressClassList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Networking.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing IngressClassList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static IngressClassList Get(string name, Input id, CustomResource return new IngressClassList(name, default(Types.Inputs.Networking.V1Beta1.IngressClassListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1/CSIDriver.cs b/sdk/dotnet/Storage/V1/CSIDriver.cs index 81fc68a517..2030a57dd3 100755 --- a/sdk/dotnet/Storage/V1/CSIDriver.cs +++ b/sdk/dotnet/Storage/V1/CSIDriver.cs @@ -58,7 +58,7 @@ public partial class CSIDriver : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CSIDriver(string name, Types.Inputs.Storage.V1.CSIDriverArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1:CSIDriver", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1:CSIDriver", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -75,6 +75,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1.CSIDriv return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:storage.k8s.io/v1beta1:CSIDriver" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing CSIDriver resource's state with the given name and ID. /// @@ -86,6 +99,5 @@ public static CSIDriver Get(string name, Input id, CustomResourceOptions return new CSIDriver(name, default(Types.Inputs.Storage.V1.CSIDriverArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1/CSIDriverList.cs b/sdk/dotnet/Storage/V1/CSIDriverList.cs index 81f640a005..3e4f79d791 100755 --- a/sdk/dotnet/Storage/V1/CSIDriverList.cs +++ b/sdk/dotnet/Storage/V1/CSIDriverList.cs @@ -51,7 +51,7 @@ public partial class CSIDriverList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CSIDriverList(string name, Types.Inputs.Storage.V1.CSIDriverListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1:CSIDriverList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1:CSIDriverList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1.CSIDriv return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CSIDriverList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static CSIDriverList Get(string name, Input id, CustomResourceOpt return new CSIDriverList(name, default(Types.Inputs.Storage.V1.CSIDriverListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Beta1/CSIDriver.cs b/sdk/dotnet/Storage/V1Beta1/CSIDriver.cs index 1ddca3e2c7..510f8b95f1 100755 --- a/sdk/dotnet/Storage/V1Beta1/CSIDriver.cs +++ b/sdk/dotnet/Storage/V1Beta1/CSIDriver.cs @@ -80,7 +80,15 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Beta1.CS private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) { - return options; + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:storage.k8s.io/v1:CSIDriver" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); } /// diff --git a/sdk/dotnet/Types/Input.cs b/sdk/dotnet/Types/Input.cs index 99627f2c1e..0f05eb5823 100755 --- a/sdk/dotnet/Types/Input.cs +++ b/sdk/dotnet/Types/Input.cs @@ -25293,10 +25293,8 @@ public class IngressClassSpecArgs : Pulumi.ResourceArgs public Input? Controller { get; set; } /// - /// Parameters is a link to a resource containing additional configuration for the + /// Parameters is a link to a custom resource containing additional configuration for the /// controller. This is optional if the controller does not require extra parameters. - /// Example configuration resources include `core.ConfigMap` or a controller specific Custom - /// Resource. /// [Input("parameters")] public Input? Parameters { get; set; } diff --git a/sdk/dotnet/Types/Output.cs b/sdk/dotnet/Types/Output.cs index a686cea707..5f13eb527e 100755 --- a/sdk/dotnet/Types/Output.cs +++ b/sdk/dotnet/Types/Output.cs @@ -28740,10 +28740,8 @@ public sealed class IngressClassSpec public readonly string Controller; /// - /// Parameters is a link to a resource containing additional configuration for the + /// Parameters is a link to a custom resource containing additional configuration for the /// controller. This is optional if the controller does not require extra parameters. - /// Example configuration resources include `core.ConfigMap` or a controller specific Custom - /// Resource. /// public readonly Core.V1.TypedLocalObjectReference Parameters; diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index a4ee0985aa..8464eb43cc 100755 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -20872,9 +20872,8 @@ export namespace networking { controller?: pulumi.Input /** - * Parameters is a link to a resource containing additional configuration for the controller. - * This is optional if the controller does not require extra parameters. Example configuration - * resources include `core.ConfigMap` or a controller specific Custom Resource. + * Parameters is a link to a custom resource containing additional configuration for the + * controller. This is optional if the controller does not require extra parameters. */ parameters?: pulumi.Input diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 9c81ba53ae..6850224598 100755 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -20181,9 +20181,8 @@ export namespace networking { readonly controller: string /** - * Parameters is a link to a resource containing additional configuration for the controller. - * This is optional if the controller does not require extra parameters. Example configuration - * resources include `core.ConfigMap` or a controller specific Custom Resource. + * Parameters is a link to a custom resource containing additional configuration for the + * controller. This is optional if the controller does not require extra parameters. */ readonly parameters: core.v1.TypedLocalObjectReference