diff --git a/CHANGELOG.md b/CHANGELOG.md index b346ef8a9d..d0c34d19c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## HEAD (Unreleased) +### Improvements + +- Remove the ComponentStatus resource type. (https://github.com/pulumi/pulumi-kubernetes/pull/1234) + ## 2.4.2 (August 3, 2020) ### Bug Fixes diff --git a/provider/cmd/pulumi-resource-kubernetes/schema.json b/provider/cmd/pulumi-resource-kubernetes/schema.json index 44bd43c08d..5be737dadf 100644 --- a/provider/cmd/pulumi-resource-kubernetes/schema.json +++ b/provider/cmd/pulumi-resource-kubernetes/schema.json @@ -10923,8 +10923,7 @@ "properties": { "apiVersion": { "type": "string", - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "const": "v1" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" }, "conditions": { "type": "array", @@ -10935,8 +10934,7 @@ }, "kind": { "type": "string", - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "const": "ComponentStatus" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" }, "metadata": { "$ref": "#/types/kubernetes:meta/v1:ObjectMeta", @@ -10960,8 +10958,7 @@ "properties": { "apiVersion": { "type": "string", - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "const": "v1" + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" }, "items": { "type": "array", @@ -10972,8 +10969,7 @@ }, "kind": { "type": "string", - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "const": "ComponentStatusList" + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" }, "metadata": { "$ref": "#/types/kubernetes:meta/v1:ListMeta", @@ -30549,112 +30545,6 @@ "target" ] }, - "kubernetes:core/v1:ComponentStatus": { - "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.", - "properties": { - "apiVersion": { - "type": "string", - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "const": "v1" - }, - "conditions": { - "type": "array", - "items": { - "$ref": "#/types/kubernetes:core/v1:ComponentCondition" - }, - "description": "List of component conditions observed" - }, - "kind": { - "type": "string", - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "const": "ComponentStatus" - }, - "metadata": { - "$ref": "#/types/kubernetes:meta/v1:ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "type": "object", - "inputProperties": { - "apiVersion": { - "type": "string", - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "const": "v1" - }, - "conditions": { - "type": "array", - "items": { - "$ref": "#/types/kubernetes:core/v1:ComponentCondition" - }, - "description": "List of component conditions observed" - }, - "kind": { - "type": "string", - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "const": "ComponentStatus" - }, - "metadata": { - "$ref": "#/types/kubernetes:meta/v1:ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - } - }, - "kubernetes:core/v1:ComponentStatusList": { - "description": "Status of all the conditions for the component as a list of ComponentStatus objects.", - "properties": { - "apiVersion": { - "type": "string", - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "const": "v1" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/types/kubernetes:core/v1:ComponentStatus" - }, - "description": "List of ComponentStatus objects." - }, - "kind": { - "type": "string", - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "const": "ComponentStatusList" - }, - "metadata": { - "$ref": "#/types/kubernetes:meta/v1:ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "type": "object", - "required": [ - "items" - ], - "inputProperties": { - "apiVersion": { - "type": "string", - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "const": "v1" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/types/kubernetes:core/v1:ComponentStatus" - }, - "description": "List of ComponentStatus objects." - }, - "kind": { - "type": "string", - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "const": "ComponentStatusList" - }, - "metadata": { - "$ref": "#/types/kubernetes:meta/v1:ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" - } - }, - "requiredInputs": [ - "items" - ] - }, "kubernetes:core/v1:ConfigMap": { "description": "ConfigMap holds configuration data for pods to consume.", "properties": { diff --git a/provider/pkg/gen/kinds/kinds.tmpl b/provider/pkg/gen/kinds/kinds.tmpl index 920ed0fbcd..6e3f05e451 100644 --- a/provider/pkg/gen/kinds/kinds.tmpl +++ b/provider/pkg/gen/kinds/kinds.tmpl @@ -73,7 +73,6 @@ func (k Kind) Namespaced() (known bool, namespaced bool) { CertificateSigningRequest, ClusterRole, ClusterRoleBinding, - ComponentStatus, CSIDriver, CSINode, CustomResourceDefinition, diff --git a/provider/pkg/gen/typegen.go b/provider/pkg/gen/typegen.go index 240da0b8e1..afa1aabd4b 100644 --- a/provider/pkg/gen/typegen.go +++ b/provider/pkg/gen/typegen.go @@ -202,7 +202,7 @@ func (d definition) isTopLevel() bool { // by Pulumi. switch fmt.Sprintf("%s/%s", d.gvk.GroupVersion().String(), d.gvk.Kind) { case "policy/v1beta1/Eviction", "v1/Status", "apps/v1beta1/Scale", "apps/v1beta2/Scale", - "autoscaling/v1/Scale", "extensions/v1beta1/Scale": + "autoscaling/v1/Scale", "extensions/v1beta1/Scale", "core/v1/ComponentStatus", "core/v1/ComponentStatusList": return false } diff --git a/provider/pkg/kinds/kinds.go b/provider/pkg/kinds/kinds.go index 739ea56190..36e7f7d2a5 100644 --- a/provider/pkg/kinds/kinds.go +++ b/provider/pkg/kinds/kinds.go @@ -42,8 +42,6 @@ const ( ClusterRoleBinding Kind = "ClusterRoleBinding" ClusterRoleBindingList Kind = "ClusterRoleBindingList" ClusterRoleList Kind = "ClusterRoleList" - ComponentStatus Kind = "ComponentStatus" - ComponentStatusList Kind = "ComponentStatusList" ConfigMap Kind = "ConfigMap" ConfigMapList Kind = "ConfigMapList" ControllerRevision Kind = "ControllerRevision" @@ -178,7 +176,6 @@ func (k Kind) Namespaced() (known bool, namespaced bool) { CertificateSigningRequest, ClusterRole, ClusterRoleBinding, - ComponentStatus, CSIDriver, CSINode, CustomResourceDefinition, diff --git a/sdk/dotnet/Core/V1/ComponentStatus.cs b/sdk/dotnet/Core/V1/ComponentStatus.cs deleted file mode 100755 index 37c6b844b2..0000000000 --- a/sdk/dotnet/Core/V1/ComponentStatus.cs +++ /dev/null @@ -1,135 +0,0 @@ -// *** WARNING: this file was generated by pulumigen. *** -// *** 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.Kubernetes.Core.V1 -{ - /// - /// ComponentStatus (and ComponentStatusList) holds the cluster validation info. - /// - public partial class ComponentStatus : KubernetesResource - { - /// - /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [Output("apiVersion")] - public Output ApiVersion { get; private set; } = null!; - - /// - /// List of component conditions observed - /// - [Output("conditions")] - public Output> Conditions { get; private set; } = null!; - - /// - /// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [Output("kind")] - public Output Kind { get; private set; } = null!; - - /// - /// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [Output("metadata")] - public Output Metadata { get; private set; } = null!; - - - /// - /// Create a ComponentStatus resource with the given unique name, arguments, and options. - /// - /// - /// The unique name of the resource - /// The arguments used to populate this resource's properties - /// A bag of options that control this resource's behavior - public ComponentStatus(string name, Pulumi.Kubernetes.Types.Inputs.Core.V1.ComponentStatusArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ComponentStatus", name, MakeArgs(args), MakeResourceOptions(options, "")) - { - } - internal ComponentStatus(string name, ImmutableDictionary dictionary, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ComponentStatus", name, new DictionaryResourceArgs(dictionary), MakeResourceOptions(options, "")) - { - } - - private ComponentStatus(string name, Input id, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ComponentStatus", name, null, MakeResourceOptions(options, id)) - { - } - - private static Pulumi.Kubernetes.Types.Inputs.Core.V1.ComponentStatusArgs? MakeArgs(Pulumi.Kubernetes.Types.Inputs.Core.V1.ComponentStatusArgs? args) - { - args ??= new Pulumi.Kubernetes.Types.Inputs.Core.V1.ComponentStatusArgs(); - args.ApiVersion = "v1"; - args.Kind = "ComponentStatus"; - return args; - } - - private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) - { - var defaultOptions = new CustomResourceOptions - { - Version = Utilities.Version, - }; - 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; - } - /// - /// Get an existing ComponentStatus resource's state with the given name, ID, and optional extra - /// properties used to qualify the lookup. - /// - /// - /// The unique name of the resulting resource. - /// The unique provider ID of the resource to lookup. - /// A bag of options that control this resource's behavior - public static ComponentStatus Get(string name, Input id, CustomResourceOptions? options = null) - { - return new ComponentStatus(name, id, options); - } - } -} -namespace Pulumi.Kubernetes.Types.Inputs.Core.V1 -{ - - public class ComponentStatusArgs : Pulumi.ResourceArgs - { - /// - /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [Input("apiVersion")] - public Input? ApiVersion { get; set; } - - [Input("conditions")] - private InputList? _conditions; - - /// - /// List of component conditions observed - /// - public InputList Conditions - { - get => _conditions ?? (_conditions = new InputList()); - set => _conditions = value; - } - - /// - /// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [Input("kind")] - public Input? Kind { get; set; } - - /// - /// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - /// - [Input("metadata")] - public Input? Metadata { get; set; } - - public ComponentStatusArgs() - { - } - } -} diff --git a/sdk/dotnet/Core/V1/ComponentStatusList.cs b/sdk/dotnet/Core/V1/ComponentStatusList.cs deleted file mode 100755 index 046f91635d..0000000000 --- a/sdk/dotnet/Core/V1/ComponentStatusList.cs +++ /dev/null @@ -1,135 +0,0 @@ -// *** WARNING: this file was generated by pulumigen. *** -// *** 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.Kubernetes.Core.V1 -{ - /// - /// Status of all the conditions for the component as a list of ComponentStatus objects. - /// - public partial class ComponentStatusList : KubernetesResource - { - /// - /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [Output("apiVersion")] - public Output ApiVersion { get; private set; } = null!; - - /// - /// List of ComponentStatus objects. - /// - [Output("items")] - public Output> Items { get; private set; } = null!; - - /// - /// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [Output("kind")] - public Output Kind { get; private set; } = null!; - - /// - /// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [Output("metadata")] - public Output Metadata { get; private set; } = null!; - - - /// - /// Create a ComponentStatusList resource with the given unique name, arguments, and options. - /// - /// - /// The unique name of the resource - /// The arguments used to populate this resource's properties - /// A bag of options that control this resource's behavior - public ComponentStatusList(string name, Pulumi.Kubernetes.Types.Inputs.Core.V1.ComponentStatusListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ComponentStatusList", name, MakeArgs(args), MakeResourceOptions(options, "")) - { - } - internal ComponentStatusList(string name, ImmutableDictionary dictionary, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ComponentStatusList", name, new DictionaryResourceArgs(dictionary), MakeResourceOptions(options, "")) - { - } - - private ComponentStatusList(string name, Input id, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ComponentStatusList", name, null, MakeResourceOptions(options, id)) - { - } - - private static Pulumi.Kubernetes.Types.Inputs.Core.V1.ComponentStatusListArgs? MakeArgs(Pulumi.Kubernetes.Types.Inputs.Core.V1.ComponentStatusListArgs? args) - { - args ??= new Pulumi.Kubernetes.Types.Inputs.Core.V1.ComponentStatusListArgs(); - args.ApiVersion = "v1"; - args.Kind = "ComponentStatusList"; - return args; - } - - private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) - { - var defaultOptions = new CustomResourceOptions - { - Version = Utilities.Version, - }; - 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; - } - /// - /// Get an existing ComponentStatusList resource's state with the given name, ID, and optional extra - /// properties used to qualify the lookup. - /// - /// - /// The unique name of the resulting resource. - /// The unique provider ID of the resource to lookup. - /// A bag of options that control this resource's behavior - public static ComponentStatusList Get(string name, Input id, CustomResourceOptions? options = null) - { - return new ComponentStatusList(name, id, options); - } - } -} -namespace Pulumi.Kubernetes.Types.Inputs.Core.V1 -{ - - public class ComponentStatusListArgs : Pulumi.ResourceArgs - { - /// - /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - /// - [Input("apiVersion")] - public Input? ApiVersion { get; set; } - - [Input("items", required: true)] - private InputList? _items; - - /// - /// List of ComponentStatus objects. - /// - public InputList Items - { - get => _items ?? (_items = new InputList()); - set => _items = value; - } - - /// - /// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [Input("kind")] - public Input? Kind { get; set; } - - /// - /// Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - /// - [Input("metadata")] - public Input? Metadata { get; set; } - - public ComponentStatusListArgs() - { - } - } -} diff --git a/sdk/dotnet/Yaml/Yaml.cs b/sdk/dotnet/Yaml/Yaml.cs index 86c94df349..c04b104662 100755 --- a/sdk/dotnet/Yaml/Yaml.cs +++ b/sdk/dotnet/Yaml/Yaml.cs @@ -130,8 +130,6 @@ public Output GetResource(string name, string? namespaceName = null) type == typeof(Coordination.V1Beta1.Lease) ? "coordination.k8s.io/v1beta1/Lease" : type == typeof(Coordination.V1Beta1.LeaseList) ? "coordination.k8s.io/v1beta1/LeaseList" : type == typeof(Core.V1.Binding) ? "v1/Binding" : - type == typeof(Core.V1.ComponentStatus) ? "v1/ComponentStatus" : - type == typeof(Core.V1.ComponentStatusList) ? "v1/ComponentStatusList" : type == typeof(Core.V1.ConfigMap) ? "v1/ConfigMap" : type == typeof(Core.V1.ConfigMapList) ? "v1/ConfigMapList" : type == typeof(Core.V1.Endpoints) ? "v1/Endpoints" : @@ -448,7 +446,6 @@ internal static Output> ParseYam || gvk == "certificates.k8s.io/v1beta1/CertificateSigningRequestList" || gvk == "coordination.k8s.io/v1/LeaseList" || gvk == "coordination.k8s.io/v1beta1/LeaseList" - || gvk == "v1/ComponentStatusList" || gvk == "v1/ConfigMapList" || gvk == "v1/EndpointsList" || gvk == "v1/EventList" @@ -791,12 +788,6 @@ internal static Output> ParseYam id.Apply(id => ($"v1/Binding::{id}", new Core.V1.Binding(id, obj!, opts) as KubernetesResource)) }; - case "v1/ComponentStatus": - return new[] - { - id.Apply(id => ($"v1/ComponentStatus::{id}", - new Core.V1.ComponentStatus(id, obj!, opts) as KubernetesResource)) - }; case "v1/ConfigMap": return new[] { diff --git a/sdk/go/kubernetes/core/v1/componentStatus.go b/sdk/go/kubernetes/core/v1/componentStatus.go deleted file mode 100644 index 7e4dbdcf40..0000000000 --- a/sdk/go/kubernetes/core/v1/componentStatus.go +++ /dev/null @@ -1,107 +0,0 @@ -// *** WARNING: this file was generated by pulumigen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package v1 - -import ( - "reflect" - - metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/meta/v1" - "github.com/pulumi/pulumi/sdk/v2/go/pulumi" -) - -// ComponentStatus (and ComponentStatusList) holds the cluster validation info. -type ComponentStatus struct { - pulumi.CustomResourceState - - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion pulumi.StringPtrOutput `pulumi:"apiVersion"` - // List of component conditions observed - Conditions ComponentConditionArrayOutput `pulumi:"conditions"` - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind pulumi.StringPtrOutput `pulumi:"kind"` - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - Metadata metav1.ObjectMetaPtrOutput `pulumi:"metadata"` -} - -// NewComponentStatus registers a new resource with the given unique name, arguments, and options. -func NewComponentStatus(ctx *pulumi.Context, - name string, args *ComponentStatusArgs, opts ...pulumi.ResourceOption) (*ComponentStatus, error) { - if args == nil { - args = &ComponentStatusArgs{} - } - args.ApiVersion = pulumi.StringPtr("v1") - args.Kind = pulumi.StringPtr("ComponentStatus") - var resource ComponentStatus - err := ctx.RegisterResource("kubernetes:core/v1:ComponentStatus", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetComponentStatus gets an existing ComponentStatus resource's state with the given name, ID, and optional -// state properties that are used to uniquely qualify the lookup (nil if not required). -func GetComponentStatus(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *ComponentStatusState, opts ...pulumi.ResourceOption) (*ComponentStatus, error) { - var resource ComponentStatus - err := ctx.ReadResource("kubernetes:core/v1:ComponentStatus", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering ComponentStatus resources. -type componentStatusState struct { - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `pulumi:"apiVersion"` - // List of component conditions observed - Conditions []ComponentCondition `pulumi:"conditions"` - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `pulumi:"kind"` - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - Metadata *metav1.ObjectMeta `pulumi:"metadata"` -} - -type ComponentStatusState struct { - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion pulumi.StringPtrInput - // List of component conditions observed - Conditions ComponentConditionArrayInput - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind pulumi.StringPtrInput - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - Metadata metav1.ObjectMetaPtrInput -} - -func (ComponentStatusState) ElementType() reflect.Type { - return reflect.TypeOf((*componentStatusState)(nil)).Elem() -} - -type componentStatusArgs struct { - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `pulumi:"apiVersion"` - // List of component conditions observed - Conditions []ComponentCondition `pulumi:"conditions"` - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `pulumi:"kind"` - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - Metadata *metav1.ObjectMeta `pulumi:"metadata"` -} - -// The set of arguments for constructing a ComponentStatus resource. -type ComponentStatusArgs struct { - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion pulumi.StringPtrInput - // List of component conditions observed - Conditions ComponentConditionArrayInput - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind pulumi.StringPtrInput - // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - Metadata metav1.ObjectMetaPtrInput -} - -func (ComponentStatusArgs) ElementType() reflect.Type { - return reflect.TypeOf((*componentStatusArgs)(nil)).Elem() -} diff --git a/sdk/go/kubernetes/core/v1/componentStatusList.go b/sdk/go/kubernetes/core/v1/componentStatusList.go deleted file mode 100644 index 9573995429..0000000000 --- a/sdk/go/kubernetes/core/v1/componentStatusList.go +++ /dev/null @@ -1,111 +0,0 @@ -// *** WARNING: this file was generated by pulumigen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -package v1 - -import ( - "reflect" - - "github.com/pkg/errors" - metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/meta/v1" - "github.com/pulumi/pulumi/sdk/v2/go/pulumi" -) - -// Status of all the conditions for the component as a list of ComponentStatus objects. -type ComponentStatusList struct { - pulumi.CustomResourceState - - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion pulumi.StringPtrOutput `pulumi:"apiVersion"` - // List of ComponentStatus objects. - Items ComponentStatusTypeArrayOutput `pulumi:"items"` - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind pulumi.StringPtrOutput `pulumi:"kind"` - // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Metadata metav1.ListMetaPtrOutput `pulumi:"metadata"` -} - -// NewComponentStatusList registers a new resource with the given unique name, arguments, and options. -func NewComponentStatusList(ctx *pulumi.Context, - name string, args *ComponentStatusListArgs, opts ...pulumi.ResourceOption) (*ComponentStatusList, error) { - if args == nil || args.Items == nil { - return nil, errors.New("missing required argument 'Items'") - } - if args == nil { - args = &ComponentStatusListArgs{} - } - args.ApiVersion = pulumi.StringPtr("v1") - args.Kind = pulumi.StringPtr("ComponentStatusList") - var resource ComponentStatusList - err := ctx.RegisterResource("kubernetes:core/v1:ComponentStatusList", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetComponentStatusList gets an existing ComponentStatusList resource's state with the given name, ID, and optional -// state properties that are used to uniquely qualify the lookup (nil if not required). -func GetComponentStatusList(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *ComponentStatusListState, opts ...pulumi.ResourceOption) (*ComponentStatusList, error) { - var resource ComponentStatusList - err := ctx.ReadResource("kubernetes:core/v1:ComponentStatusList", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering ComponentStatusList resources. -type componentStatusListState struct { - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `pulumi:"apiVersion"` - // List of ComponentStatus objects. - Items []ComponentStatusType `pulumi:"items"` - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `pulumi:"kind"` - // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Metadata *metav1.ListMeta `pulumi:"metadata"` -} - -type ComponentStatusListState struct { - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion pulumi.StringPtrInput - // List of ComponentStatus objects. - Items ComponentStatusTypeArrayInput - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind pulumi.StringPtrInput - // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Metadata metav1.ListMetaPtrInput -} - -func (ComponentStatusListState) ElementType() reflect.Type { - return reflect.TypeOf((*componentStatusListState)(nil)).Elem() -} - -type componentStatusListArgs struct { - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `pulumi:"apiVersion"` - // List of ComponentStatus objects. - Items []ComponentStatusType `pulumi:"items"` - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `pulumi:"kind"` - // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Metadata *metav1.ListMeta `pulumi:"metadata"` -} - -// The set of arguments for constructing a ComponentStatusList resource. -type ComponentStatusListArgs struct { - // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion pulumi.StringPtrInput - // List of ComponentStatus objects. - Items ComponentStatusTypeArrayInput - // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind pulumi.StringPtrInput - // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Metadata metav1.ListMetaPtrInput -} - -func (ComponentStatusListArgs) ElementType() reflect.Type { - return reflect.TypeOf((*componentStatusListArgs)(nil)).Elem() -} diff --git a/sdk/go/kubernetes/core/v1/pulumiTypes.go b/sdk/go/kubernetes/core/v1/pulumiTypes.go index 3d8401491c..77a09ba29c 100644 --- a/sdk/go/kubernetes/core/v1/pulumiTypes.go +++ b/sdk/go/kubernetes/core/v1/pulumiTypes.go @@ -2914,7 +2914,7 @@ func (o ComponentConditionArrayOutput) Index(i pulumi.IntInput) ComponentConditi } // ComponentStatus (and ComponentStatusList) holds the cluster validation info. -type ComponentStatusType struct { +type ComponentStatus struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `pulumi:"apiVersion"` // List of component conditions observed @@ -2925,19 +2925,19 @@ type ComponentStatusType struct { Metadata *metav1.ObjectMeta `pulumi:"metadata"` } -// ComponentStatusTypeInput is an input type that accepts ComponentStatusTypeArgs and ComponentStatusTypeOutput values. -// You can construct a concrete instance of `ComponentStatusTypeInput` via: +// ComponentStatusInput is an input type that accepts ComponentStatusArgs and ComponentStatusOutput values. +// You can construct a concrete instance of `ComponentStatusInput` via: // -// ComponentStatusTypeArgs{...} -type ComponentStatusTypeInput interface { +// ComponentStatusArgs{...} +type ComponentStatusInput interface { pulumi.Input - ToComponentStatusTypeOutput() ComponentStatusTypeOutput - ToComponentStatusTypeOutputWithContext(context.Context) ComponentStatusTypeOutput + ToComponentStatusOutput() ComponentStatusOutput + ToComponentStatusOutputWithContext(context.Context) ComponentStatusOutput } // ComponentStatus (and ComponentStatusList) holds the cluster validation info. -type ComponentStatusTypeArgs struct { +type ComponentStatusArgs struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"` // List of component conditions observed @@ -2948,178 +2948,178 @@ type ComponentStatusTypeArgs struct { Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"` } -func (ComponentStatusTypeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ComponentStatusType)(nil)).Elem() +func (ComponentStatusArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ComponentStatus)(nil)).Elem() } -func (i ComponentStatusTypeArgs) ToComponentStatusTypeOutput() ComponentStatusTypeOutput { - return i.ToComponentStatusTypeOutputWithContext(context.Background()) +func (i ComponentStatusArgs) ToComponentStatusOutput() ComponentStatusOutput { + return i.ToComponentStatusOutputWithContext(context.Background()) } -func (i ComponentStatusTypeArgs) ToComponentStatusTypeOutputWithContext(ctx context.Context) ComponentStatusTypeOutput { - return pulumi.ToOutputWithContext(ctx, i).(ComponentStatusTypeOutput) +func (i ComponentStatusArgs) ToComponentStatusOutputWithContext(ctx context.Context) ComponentStatusOutput { + return pulumi.ToOutputWithContext(ctx, i).(ComponentStatusOutput) } -// ComponentStatusTypeArrayInput is an input type that accepts ComponentStatusTypeArray and ComponentStatusTypeArrayOutput values. -// You can construct a concrete instance of `ComponentStatusTypeArrayInput` via: +// ComponentStatusArrayInput is an input type that accepts ComponentStatusArray and ComponentStatusArrayOutput values. +// You can construct a concrete instance of `ComponentStatusArrayInput` via: // -// ComponentStatusTypeArray{ ComponentStatusTypeArgs{...} } -type ComponentStatusTypeArrayInput interface { +// ComponentStatusArray{ ComponentStatusArgs{...} } +type ComponentStatusArrayInput interface { pulumi.Input - ToComponentStatusTypeArrayOutput() ComponentStatusTypeArrayOutput - ToComponentStatusTypeArrayOutputWithContext(context.Context) ComponentStatusTypeArrayOutput + ToComponentStatusArrayOutput() ComponentStatusArrayOutput + ToComponentStatusArrayOutputWithContext(context.Context) ComponentStatusArrayOutput } -type ComponentStatusTypeArray []ComponentStatusTypeInput +type ComponentStatusArray []ComponentStatusInput -func (ComponentStatusTypeArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ComponentStatusType)(nil)).Elem() +func (ComponentStatusArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ComponentStatus)(nil)).Elem() } -func (i ComponentStatusTypeArray) ToComponentStatusTypeArrayOutput() ComponentStatusTypeArrayOutput { - return i.ToComponentStatusTypeArrayOutputWithContext(context.Background()) +func (i ComponentStatusArray) ToComponentStatusArrayOutput() ComponentStatusArrayOutput { + return i.ToComponentStatusArrayOutputWithContext(context.Background()) } -func (i ComponentStatusTypeArray) ToComponentStatusTypeArrayOutputWithContext(ctx context.Context) ComponentStatusTypeArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ComponentStatusTypeArrayOutput) +func (i ComponentStatusArray) ToComponentStatusArrayOutputWithContext(ctx context.Context) ComponentStatusArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ComponentStatusArrayOutput) } // ComponentStatus (and ComponentStatusList) holds the cluster validation info. -type ComponentStatusTypeOutput struct{ *pulumi.OutputState } +type ComponentStatusOutput struct{ *pulumi.OutputState } -func (ComponentStatusTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ComponentStatusType)(nil)).Elem() +func (ComponentStatusOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ComponentStatus)(nil)).Elem() } -func (o ComponentStatusTypeOutput) ToComponentStatusTypeOutput() ComponentStatusTypeOutput { +func (o ComponentStatusOutput) ToComponentStatusOutput() ComponentStatusOutput { return o } -func (o ComponentStatusTypeOutput) ToComponentStatusTypeOutputWithContext(ctx context.Context) ComponentStatusTypeOutput { +func (o ComponentStatusOutput) ToComponentStatusOutputWithContext(ctx context.Context) ComponentStatusOutput { return o } // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources -func (o ComponentStatusTypeOutput) ApiVersion() pulumi.StringPtrOutput { - return o.ApplyT(func(v ComponentStatusType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput) +func (o ComponentStatusOutput) ApiVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v ComponentStatus) *string { return v.ApiVersion }).(pulumi.StringPtrOutput) } // List of component conditions observed -func (o ComponentStatusTypeOutput) Conditions() ComponentConditionArrayOutput { - return o.ApplyT(func(v ComponentStatusType) []ComponentCondition { return v.Conditions }).(ComponentConditionArrayOutput) +func (o ComponentStatusOutput) Conditions() ComponentConditionArrayOutput { + return o.ApplyT(func(v ComponentStatus) []ComponentCondition { return v.Conditions }).(ComponentConditionArrayOutput) } // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds -func (o ComponentStatusTypeOutput) Kind() pulumi.StringPtrOutput { - return o.ApplyT(func(v ComponentStatusType) *string { return v.Kind }).(pulumi.StringPtrOutput) +func (o ComponentStatusOutput) Kind() pulumi.StringPtrOutput { + return o.ApplyT(func(v ComponentStatus) *string { return v.Kind }).(pulumi.StringPtrOutput) } // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata -func (o ComponentStatusTypeOutput) Metadata() metav1.ObjectMetaPtrOutput { - return o.ApplyT(func(v ComponentStatusType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput) +func (o ComponentStatusOutput) Metadata() metav1.ObjectMetaPtrOutput { + return o.ApplyT(func(v ComponentStatus) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput) } -type ComponentStatusTypeArrayOutput struct{ *pulumi.OutputState } +type ComponentStatusArrayOutput struct{ *pulumi.OutputState } -func (ComponentStatusTypeArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ComponentStatusType)(nil)).Elem() +func (ComponentStatusArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ComponentStatus)(nil)).Elem() } -func (o ComponentStatusTypeArrayOutput) ToComponentStatusTypeArrayOutput() ComponentStatusTypeArrayOutput { +func (o ComponentStatusArrayOutput) ToComponentStatusArrayOutput() ComponentStatusArrayOutput { return o } -func (o ComponentStatusTypeArrayOutput) ToComponentStatusTypeArrayOutputWithContext(ctx context.Context) ComponentStatusTypeArrayOutput { +func (o ComponentStatusArrayOutput) ToComponentStatusArrayOutputWithContext(ctx context.Context) ComponentStatusArrayOutput { return o } -func (o ComponentStatusTypeArrayOutput) Index(i pulumi.IntInput) ComponentStatusTypeOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ComponentStatusType { - return vs[0].([]ComponentStatusType)[vs[1].(int)] - }).(ComponentStatusTypeOutput) +func (o ComponentStatusArrayOutput) Index(i pulumi.IntInput) ComponentStatusOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ComponentStatus { + return vs[0].([]ComponentStatus)[vs[1].(int)] + }).(ComponentStatusOutput) } // Status of all the conditions for the component as a list of ComponentStatus objects. -type ComponentStatusListType struct { +type ComponentStatusList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `pulumi:"apiVersion"` // List of ComponentStatus objects. - Items []ComponentStatusType `pulumi:"items"` + Items []ComponentStatus `pulumi:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `pulumi:"kind"` // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Metadata *metav1.ListMeta `pulumi:"metadata"` } -// ComponentStatusListTypeInput is an input type that accepts ComponentStatusListTypeArgs and ComponentStatusListTypeOutput values. -// You can construct a concrete instance of `ComponentStatusListTypeInput` via: +// ComponentStatusListInput is an input type that accepts ComponentStatusListArgs and ComponentStatusListOutput values. +// You can construct a concrete instance of `ComponentStatusListInput` via: // -// ComponentStatusListTypeArgs{...} -type ComponentStatusListTypeInput interface { +// ComponentStatusListArgs{...} +type ComponentStatusListInput interface { pulumi.Input - ToComponentStatusListTypeOutput() ComponentStatusListTypeOutput - ToComponentStatusListTypeOutputWithContext(context.Context) ComponentStatusListTypeOutput + ToComponentStatusListOutput() ComponentStatusListOutput + ToComponentStatusListOutputWithContext(context.Context) ComponentStatusListOutput } // Status of all the conditions for the component as a list of ComponentStatus objects. -type ComponentStatusListTypeArgs struct { +type ComponentStatusListArgs struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"` // List of ComponentStatus objects. - Items ComponentStatusTypeArrayInput `pulumi:"items"` + Items ComponentStatusArrayInput `pulumi:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind pulumi.StringPtrInput `pulumi:"kind"` // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Metadata metav1.ListMetaPtrInput `pulumi:"metadata"` } -func (ComponentStatusListTypeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ComponentStatusListType)(nil)).Elem() +func (ComponentStatusListArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ComponentStatusList)(nil)).Elem() } -func (i ComponentStatusListTypeArgs) ToComponentStatusListTypeOutput() ComponentStatusListTypeOutput { - return i.ToComponentStatusListTypeOutputWithContext(context.Background()) +func (i ComponentStatusListArgs) ToComponentStatusListOutput() ComponentStatusListOutput { + return i.ToComponentStatusListOutputWithContext(context.Background()) } -func (i ComponentStatusListTypeArgs) ToComponentStatusListTypeOutputWithContext(ctx context.Context) ComponentStatusListTypeOutput { - return pulumi.ToOutputWithContext(ctx, i).(ComponentStatusListTypeOutput) +func (i ComponentStatusListArgs) ToComponentStatusListOutputWithContext(ctx context.Context) ComponentStatusListOutput { + return pulumi.ToOutputWithContext(ctx, i).(ComponentStatusListOutput) } // Status of all the conditions for the component as a list of ComponentStatus objects. -type ComponentStatusListTypeOutput struct{ *pulumi.OutputState } +type ComponentStatusListOutput struct{ *pulumi.OutputState } -func (ComponentStatusListTypeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ComponentStatusListType)(nil)).Elem() +func (ComponentStatusListOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ComponentStatusList)(nil)).Elem() } -func (o ComponentStatusListTypeOutput) ToComponentStatusListTypeOutput() ComponentStatusListTypeOutput { +func (o ComponentStatusListOutput) ToComponentStatusListOutput() ComponentStatusListOutput { return o } -func (o ComponentStatusListTypeOutput) ToComponentStatusListTypeOutputWithContext(ctx context.Context) ComponentStatusListTypeOutput { +func (o ComponentStatusListOutput) ToComponentStatusListOutputWithContext(ctx context.Context) ComponentStatusListOutput { return o } // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources -func (o ComponentStatusListTypeOutput) ApiVersion() pulumi.StringPtrOutput { - return o.ApplyT(func(v ComponentStatusListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput) +func (o ComponentStatusListOutput) ApiVersion() pulumi.StringPtrOutput { + return o.ApplyT(func(v ComponentStatusList) *string { return v.ApiVersion }).(pulumi.StringPtrOutput) } // List of ComponentStatus objects. -func (o ComponentStatusListTypeOutput) Items() ComponentStatusTypeArrayOutput { - return o.ApplyT(func(v ComponentStatusListType) []ComponentStatusType { return v.Items }).(ComponentStatusTypeArrayOutput) +func (o ComponentStatusListOutput) Items() ComponentStatusArrayOutput { + return o.ApplyT(func(v ComponentStatusList) []ComponentStatus { return v.Items }).(ComponentStatusArrayOutput) } // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds -func (o ComponentStatusListTypeOutput) Kind() pulumi.StringPtrOutput { - return o.ApplyT(func(v ComponentStatusListType) *string { return v.Kind }).(pulumi.StringPtrOutput) +func (o ComponentStatusListOutput) Kind() pulumi.StringPtrOutput { + return o.ApplyT(func(v ComponentStatusList) *string { return v.Kind }).(pulumi.StringPtrOutput) } // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds -func (o ComponentStatusListTypeOutput) Metadata() metav1.ListMetaPtrOutput { - return o.ApplyT(func(v ComponentStatusListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput) +func (o ComponentStatusListOutput) Metadata() metav1.ListMetaPtrOutput { + return o.ApplyT(func(v ComponentStatusList) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput) } // ConfigMap holds configuration data for pods to consume. @@ -31569,9 +31569,9 @@ func init() { pulumi.RegisterOutputType(ClientIPConfigPtrOutput{}) pulumi.RegisterOutputType(ComponentConditionOutput{}) pulumi.RegisterOutputType(ComponentConditionArrayOutput{}) - pulumi.RegisterOutputType(ComponentStatusTypeOutput{}) - pulumi.RegisterOutputType(ComponentStatusTypeArrayOutput{}) - pulumi.RegisterOutputType(ComponentStatusListTypeOutput{}) + pulumi.RegisterOutputType(ComponentStatusOutput{}) + pulumi.RegisterOutputType(ComponentStatusArrayOutput{}) + pulumi.RegisterOutputType(ComponentStatusListOutput{}) pulumi.RegisterOutputType(ConfigMapTypeOutput{}) pulumi.RegisterOutputType(ConfigMapTypeArrayOutput{}) pulumi.RegisterOutputType(ConfigMapEnvSourceOutput{}) diff --git a/sdk/go/kubernetes/yaml/yaml.go b/sdk/go/kubernetes/yaml/yaml.go index c7a1e5b097..bb741fdaa7 100644 --- a/sdk/go/kubernetes/yaml/yaml.go +++ b/sdk/go/kubernetes/yaml/yaml.go @@ -235,7 +235,6 @@ func parseYamlObject(ctx *pulumi.Context, obj map[string]interface{}, transforma "certificates.k8s.io/v1beta1/CertificateSigningRequestList", "coordination.k8s.io/v1/LeaseList", "coordination.k8s.io/v1beta1/LeaseList", - "v1/ComponentStatusList", "v1/ConfigMapList", "v1/EndpointsList", "v1/EventList", @@ -640,13 +639,6 @@ func parseYamlObject(ctx *pulumi.Context, obj map[string]interface{}, transforma return nil, err } return []resourceTuple{{Name: key, Resource: &res}}, nil - case "v1/ComponentStatus": - var res corev1.ComponentStatus - err := ctx.RegisterResource("kubernetes:core/v1:ComponentStatus", metaName, kubernetes.UntypedArgs(obj), &res, opts...) - if err != nil { - return nil, err - } - return []resourceTuple{{Name: key, Resource: &res}}, nil case "v1/ConfigMap": var res corev1.ConfigMap err := ctx.RegisterResource("kubernetes:core/v1:ConfigMap", metaName, kubernetes.UntypedArgs(obj), &res, opts...) diff --git a/sdk/nodejs/core/v1/ComponentStatus.ts b/sdk/nodejs/core/v1/ComponentStatus.ts deleted file mode 100644 index 7cfa7e3b4f..0000000000 --- a/sdk/nodejs/core/v1/ComponentStatus.ts +++ /dev/null @@ -1,100 +0,0 @@ -// *** WARNING: this file was generated by pulumigen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -import * as pulumi from "@pulumi/pulumi"; -import * as inputs from "../../types/input"; -import * as outputs from "../../types/output"; -import * as utilities from "../../utilities"; - -/** - * ComponentStatus (and ComponentStatusList) holds the cluster validation info. - */ -export class ComponentStatus extends pulumi.CustomResource { - /** - * Get an existing ComponentStatus resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param opts Optional settings to control the behavior of the CustomResource. - */ - public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): ComponentStatus { - return new ComponentStatus(name, undefined, { ...opts, id: id }); - } - - /** @internal */ - public static readonly __pulumiType = 'kubernetes:core/v1:ComponentStatus'; - - /** - * Returns true if the given object is an instance of ComponentStatus. This is designed to work even - * when multiple copies of the Pulumi SDK have been loaded into the same process. - */ - public static isInstance(obj: any): obj is ComponentStatus { - if (obj === undefined || obj === null) { - return false; - } - return obj['__pulumiType'] === ComponentStatus.__pulumiType; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - */ - public readonly apiVersion!: pulumi.Output<"v1">; - /** - * List of component conditions observed - */ - public readonly conditions!: pulumi.Output; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - */ - public readonly kind!: pulumi.Output<"ComponentStatus">; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - */ - public readonly metadata!: pulumi.Output; - - /** - * Create a ComponentStatus resource with the given unique name, arguments, and options. - * - * @param name The _unique_ name of the resource. - * @param args The arguments to use to populate this resource's properties. - * @param opts A bag of options that control this resource's behavior. - */ - constructor(name: string, args?: ComponentStatusArgs, opts?: pulumi.CustomResourceOptions) { - let inputs: pulumi.Inputs = {}; - inputs["apiVersion"] = "v1"; - inputs["conditions"] = args ? args.conditions : undefined; - inputs["kind"] = "ComponentStatus"; - inputs["metadata"] = args ? args.metadata : undefined; - if (!opts) { - opts = {} - } - - if (!opts.version) { - opts.version = utilities.getVersion(); - } - super(ComponentStatus.__pulumiType, name, inputs, opts); - } -} - -/** - * The set of arguments for constructing a ComponentStatus resource. - */ -export interface ComponentStatusArgs { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - */ - readonly apiVersion?: pulumi.Input<"v1">; - /** - * List of component conditions observed - */ - readonly conditions?: pulumi.Input[]>; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - */ - readonly kind?: pulumi.Input<"ComponentStatus">; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - */ - readonly metadata?: pulumi.Input; -} diff --git a/sdk/nodejs/core/v1/ComponentStatusList.ts b/sdk/nodejs/core/v1/ComponentStatusList.ts deleted file mode 100644 index 91976d0ef7..0000000000 --- a/sdk/nodejs/core/v1/ComponentStatusList.ts +++ /dev/null @@ -1,103 +0,0 @@ -// *** WARNING: this file was generated by pulumigen. *** -// *** Do not edit by hand unless you're certain you know what you are doing! *** - -import * as pulumi from "@pulumi/pulumi"; -import * as inputs from "../../types/input"; -import * as outputs from "../../types/output"; -import * as utilities from "../../utilities"; - -/** - * Status of all the conditions for the component as a list of ComponentStatus objects. - */ -export class ComponentStatusList extends pulumi.CustomResource { - /** - * Get an existing ComponentStatusList resource's state with the given name, ID, and optional extra - * properties used to qualify the lookup. - * - * @param name The _unique_ name of the resulting resource. - * @param id The _unique_ provider ID of the resource to lookup. - * @param opts Optional settings to control the behavior of the CustomResource. - */ - public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): ComponentStatusList { - return new ComponentStatusList(name, undefined, { ...opts, id: id }); - } - - /** @internal */ - public static readonly __pulumiType = 'kubernetes:core/v1:ComponentStatusList'; - - /** - * Returns true if the given object is an instance of ComponentStatusList. This is designed to work even - * when multiple copies of the Pulumi SDK have been loaded into the same process. - */ - public static isInstance(obj: any): obj is ComponentStatusList { - if (obj === undefined || obj === null) { - return false; - } - return obj['__pulumiType'] === ComponentStatusList.__pulumiType; - } - - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - */ - public readonly apiVersion!: pulumi.Output<"v1">; - /** - * List of ComponentStatus objects. - */ - public readonly items!: pulumi.Output; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - */ - public readonly kind!: pulumi.Output<"ComponentStatusList">; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - */ - public readonly metadata!: pulumi.Output; - - /** - * Create a ComponentStatusList resource with the given unique name, arguments, and options. - * - * @param name The _unique_ name of the resource. - * @param args The arguments to use to populate this resource's properties. - * @param opts A bag of options that control this resource's behavior. - */ - constructor(name: string, args?: ComponentStatusListArgs, opts?: pulumi.CustomResourceOptions) { - let inputs: pulumi.Inputs = {}; - if (!args || args.items === undefined) { - throw new Error("Missing required property 'items'"); - } - inputs["apiVersion"] = "v1"; - inputs["items"] = args ? args.items : undefined; - inputs["kind"] = "ComponentStatusList"; - inputs["metadata"] = args ? args.metadata : undefined; - if (!opts) { - opts = {} - } - - if (!opts.version) { - opts.version = utilities.getVersion(); - } - super(ComponentStatusList.__pulumiType, name, inputs, opts); - } -} - -/** - * The set of arguments for constructing a ComponentStatusList resource. - */ -export interface ComponentStatusListArgs { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - */ - readonly apiVersion?: pulumi.Input<"v1">; - /** - * List of ComponentStatus objects. - */ - readonly items: pulumi.Input[]>; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - */ - readonly kind?: pulumi.Input<"ComponentStatusList">; - /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - */ - readonly metadata?: pulumi.Input; -} diff --git a/sdk/nodejs/core/v1/index.ts b/sdk/nodejs/core/v1/index.ts index e64cc0eff5..be148ee54f 100644 --- a/sdk/nodejs/core/v1/index.ts +++ b/sdk/nodejs/core/v1/index.ts @@ -3,8 +3,6 @@ // Export members: export * from "./binding"; -export * from "./componentStatus"; -export * from "./componentStatusList"; export * from "./configMap"; export * from "./configMapList"; export * from "./endpoints"; diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 19ea4e4e46..5c5f315aa0 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -123,8 +123,6 @@ "coordination/v1beta1/leaseList.ts", "core/index.ts", "core/v1/binding.ts", - "core/v1/componentStatus.ts", - "core/v1/componentStatusList.ts", "core/v1/configMap.ts", "core/v1/configMapList.ts", "core/v1/endpoints.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 4853f6ea95..6071a25947 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -5476,50 +5476,6 @@ export namespace core { timeoutSeconds?: pulumi.Input; } - /** - * Information about the condition of a component. - */ - export interface ComponentCondition { - /** - * Condition error code for a component. For example, a health check error code. - */ - error?: pulumi.Input; - /** - * Message about the condition for a component. For example, information about a health check. - */ - message?: pulumi.Input; - /** - * Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". - */ - status: pulumi.Input; - /** - * Type of condition for a component. Valid value: "Healthy" - */ - type: pulumi.Input; - } - - /** - * ComponentStatus (and ComponentStatusList) holds the cluster validation info. - */ - export interface ComponentStatus { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - */ - apiVersion?: pulumi.Input<"v1">; - /** - * List of component conditions observed - */ - conditions?: pulumi.Input[]>; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - */ - kind?: pulumi.Input<"ComponentStatus">; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - */ - metadata?: pulumi.Input; - } - /** * ConfigMap holds configuration data for pods to consume. */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index c0c81cf7af..4353d8ad1a 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -5736,50 +5736,6 @@ export namespace core { timeoutSeconds: number; } - /** - * Information about the condition of a component. - */ - export interface ComponentCondition { - /** - * Condition error code for a component. For example, a health check error code. - */ - error: string; - /** - * Message about the condition for a component. For example, information about a health check. - */ - message: string; - /** - * Status of the condition for a component. Valid values for "Healthy": "True", "False", or "Unknown". - */ - status: string; - /** - * Type of condition for a component. Valid value: "Healthy" - */ - type: string; - } - - /** - * ComponentStatus (and ComponentStatusList) holds the cluster validation info. - */ - export interface ComponentStatus { - /** - * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - */ - apiVersion: "v1"; - /** - * List of component conditions observed - */ - conditions: outputs.core.v1.ComponentCondition[]; - /** - * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - */ - kind: "ComponentStatus"; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - */ - metadata: outputs.meta.v1.ObjectMeta; - } - /** * ConfigMap holds configuration data for pods to consume. */ diff --git a/sdk/nodejs/yaml/yaml.ts b/sdk/nodejs/yaml/yaml.ts index 0870b10547..282685aea5 100644 --- a/sdk/nodejs/yaml/yaml.ts +++ b/sdk/nodejs/yaml/yaml.ts @@ -186,10 +186,6 @@ export abstract class CollectionComponentResource extends pulumi.ComponentResour public getResource(groupVersionKind: "coordination.k8s.io/v1beta1/LeaseList", namespace: string, name: string): pulumi.Output; public getResource(groupVersionKind: "v1/Binding", name: string): pulumi.Output; public getResource(groupVersionKind: "v1/Binding", namespace: string, name: string): pulumi.Output; - public getResource(groupVersionKind: "v1/ComponentStatus", name: string): pulumi.Output; - public getResource(groupVersionKind: "v1/ComponentStatus", namespace: string, name: string): pulumi.Output; - public getResource(groupVersionKind: "v1/ComponentStatusList", name: string): pulumi.Output; - public getResource(groupVersionKind: "v1/ComponentStatusList", namespace: string, name: string): pulumi.Output; public getResource(groupVersionKind: "v1/ConfigMap", name: string): pulumi.Output; public getResource(groupVersionKind: "v1/ConfigMap", namespace: string, name: string): pulumi.Output; public getResource(groupVersionKind: "v1/ConfigMapList", name: string): pulumi.Output; @@ -1092,22 +1088,6 @@ export abstract class CollectionComponentResource extends pulumi.ComponentResour public getResourceProperty(groupVersionKind: "v1/Binding", namespace: string, name: string, property: "metadata"): pulumi.Output; public getResourceProperty(groupVersionKind: "v1/Binding", name: string, property: "target"): pulumi.Output; public getResourceProperty(groupVersionKind: "v1/Binding", namespace: string, name: string, property: "target"): pulumi.Output; - public getResourceProperty(groupVersionKind: "v1/ComponentStatus", name: string, property: "apiVersion"): pulumi.Output<"v1">; - public getResourceProperty(groupVersionKind: "v1/ComponentStatus", namespace: string, name: string, property: "apiVersion"): pulumi.Output<"v1">; - public getResourceProperty(groupVersionKind: "v1/ComponentStatus", name: string, property: "conditions"): pulumi.Output; - public getResourceProperty(groupVersionKind: "v1/ComponentStatus", namespace: string, name: string, property: "conditions"): pulumi.Output; - public getResourceProperty(groupVersionKind: "v1/ComponentStatus", name: string, property: "kind"): pulumi.Output<"ComponentStatus">; - public getResourceProperty(groupVersionKind: "v1/ComponentStatus", namespace: string, name: string, property: "kind"): pulumi.Output<"ComponentStatus">; - public getResourceProperty(groupVersionKind: "v1/ComponentStatus", name: string, property: "metadata"): pulumi.Output; - public getResourceProperty(groupVersionKind: "v1/ComponentStatus", namespace: string, name: string, property: "metadata"): pulumi.Output; - public getResourceProperty(groupVersionKind: "v1/ComponentStatusList", name: string, property: "apiVersion"): pulumi.Output<"v1">; - public getResourceProperty(groupVersionKind: "v1/ComponentStatusList", namespace: string, name: string, property: "apiVersion"): pulumi.Output<"v1">; - public getResourceProperty(groupVersionKind: "v1/ComponentStatusList", name: string, property: "items"): pulumi.Output; - public getResourceProperty(groupVersionKind: "v1/ComponentStatusList", namespace: string, name: string, property: "items"): pulumi.Output; - public getResourceProperty(groupVersionKind: "v1/ComponentStatusList", name: string, property: "kind"): pulumi.Output<"ComponentStatusList">; - public getResourceProperty(groupVersionKind: "v1/ComponentStatusList", namespace: string, name: string, property: "kind"): pulumi.Output<"ComponentStatusList">; - public getResourceProperty(groupVersionKind: "v1/ComponentStatusList", name: string, property: "metadata"): pulumi.Output; - public getResourceProperty(groupVersionKind: "v1/ComponentStatusList", namespace: string, name: string, property: "metadata"): pulumi.Output; public getResourceProperty(groupVersionKind: "v1/ConfigMap", name: string, property: "apiVersion"): pulumi.Output<"v1">; public getResourceProperty(groupVersionKind: "v1/ConfigMap", namespace: string, name: string, property: "apiVersion"): pulumi.Output<"v1">; public getResourceProperty(groupVersionKind: "v1/ConfigMap", name: string, property: "binaryData"): pulumi.Output<{[key: string]: string}>; @@ -2666,7 +2646,6 @@ export interface ConfigOpts { || (gvk === "certificates.k8s.io/v1beta1/CertificateSigningRequestList") || (gvk === "coordination.k8s.io/v1/LeaseList") || (gvk === "coordination.k8s.io/v1beta1/LeaseList") - || (gvk === "v1/ComponentStatusList") || (gvk === "v1/ConfigMapList") || (gvk === "v1/EndpointsList") || (gvk === "v1/EventList") @@ -2962,11 +2941,6 @@ export interface ConfigOpts { name: `v1/Binding::${id}`, resource: new k8s.core.v1.Binding(id, obj, opts), }))]; - case "v1/ComponentStatus": - return [id.apply(id => ({ - name: `v1/ComponentStatus::${id}`, - resource: new k8s.core.v1.ComponentStatus(id, obj, opts), - }))]; case "v1/ConfigMap": return [id.apply(id => ({ name: `v1/ConfigMap::${id}`, diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py deleted file mode 100644 index dafc515a34..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ComponentStatus(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - """ - conditions: pulumi.Output[list] - """ - List of component conditions observed - """ - kind: pulumi.Output[str] - """ - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - metadata: pulumi.Output[dict] - """ - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - def __init__(__self__, resource_name, opts=None, api_version=None, conditions=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - ComponentStatus (and ComponentStatusList) holds the cluster validation info. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param pulumi.Input[list] conditions: List of component conditions observed - :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param pulumi.Input[dict] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - __props__['conditions'] = conditions - __props__['kind'] = 'ComponentStatus' - __props__['metadata'] = metadata - super(ComponentStatus, __self__).__init__( - 'kubernetes:core/v1:ComponentStatus', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ComponentStatus resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ComponentStatus(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py deleted file mode 100644 index 7fd227c5bc..0000000000 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# *** WARNING: this file was generated by pulumigen. *** -# *** Do not edit by hand unless you're certain you know what you are doing! *** - -import warnings -import pulumi -import pulumi.runtime -from typing import Union -from ... import utilities, tables - - -class ComponentStatusList(pulumi.CustomResource): - api_version: pulumi.Output[str] - """ - APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - """ - items: pulumi.Output[list] - """ - List of ComponentStatus objects. - """ - kind: pulumi.Output[str] - """ - Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - metadata: pulumi.Output[dict] - """ - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - def __init__(__self__, resource_name, opts=None, api_version=None, items=None, kind=None, metadata=None, __props__=None, __name__=None, __opts__=None): - """ - Status of all the conditions for the component as a list of ComponentStatus objects. - - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param pulumi.Input[list] items: List of ComponentStatus objects. - :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param pulumi.Input[dict] metadata: Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - """ - if __name__ is not None: - warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) - resource_name = __name__ - if __opts__ is not None: - warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) - opts = __opts__ - if opts is None: - opts = pulumi.ResourceOptions() - if not isinstance(opts, pulumi.ResourceOptions): - raise TypeError('Expected resource options to be a ResourceOptions instance') - if opts.version is None: - opts.version = utilities.get_version() - if opts.id is None: - if __props__ is not None: - raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') - __props__ = dict() - - __props__['api_version'] = 'v1' - if items is None: - raise TypeError("Missing required property 'items'") - __props__['items'] = items - __props__['kind'] = 'ComponentStatusList' - __props__['metadata'] = metadata - super(ComponentStatusList, __self__).__init__( - 'kubernetes:core/v1:ComponentStatusList', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name, id, opts=None): - """ - Get an existing ComponentStatusList resource's state with the given name, id, and optional extra - properties used to qualify the lookup. - - :param str resource_name: The unique name of the resulting resource. - :param str id: The unique provider ID of the resource to lookup. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = dict() - - return ComponentStatusList(resource_name, opts=opts, __props__=__props__) - - def translate_output_property(self, prop): - return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop - - def translate_input_property(self, prop): - return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/__init__.py b/sdk/python/pulumi_kubernetes/core/v1/__init__.py index 04ee08a182..8ce799e9d5 100644 --- a/sdk/python/pulumi_kubernetes/core/v1/__init__.py +++ b/sdk/python/pulumi_kubernetes/core/v1/__init__.py @@ -4,8 +4,6 @@ # Export this package's modules as members: from .Binding import * -from .ComponentStatus import * -from .ComponentStatusList import * from .ConfigMap import * from .ConfigMapList import * from .Endpoints import * diff --git a/sdk/python/pulumi_kubernetes/yaml.py b/sdk/python/pulumi_kubernetes/yaml.py index 3e104c6ed6..dd2bd21f56 100644 --- a/sdk/python/pulumi_kubernetes/yaml.py +++ b/sdk/python/pulumi_kubernetes/yaml.py @@ -883,18 +883,6 @@ def _parse_yaml_object( return [identifier.apply( lambda x: (f"v1/Binding:{x}", Binding(f"{x}", opts, **obj)))] - if gvk == "v1/ComponentStatus": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ComponentStatus - return [identifier.apply( - lambda x: (f"v1/ComponentStatus:{x}", - ComponentStatus(f"{x}", opts, **obj)))] - if gvk == "v1/ComponentStatusList": - # Import locally to avoid name collisions. - from pulumi_kubernetes.core.v1 import ComponentStatusList - return [identifier.apply( - lambda x: (f"v1/ComponentStatusList:{x}", - ComponentStatusList(f"{x}", opts, **obj)))] if gvk == "v1/ConfigMap": # Import locally to avoid name collisions. from pulumi_kubernetes.core.v1 import ConfigMap