Skip to content

Commit

Permalink
Remove the ComponentStatus resource type (#1234)
Browse files Browse the repository at this point in the history
The core/v1:ComponentStatus resource only supports the GET
operation, and is deprecated/unsupported [1]. Remove it from
our SDKs since it's not useful in this form.

[1] kubernetes/kubernetes#93570
  • Loading branch information
lblackstone authored Aug 4, 2020
1 parent d787167 commit 4811a8d
Show file tree
Hide file tree
Showing 23 changed files with 90 additions and 1,216 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
118 changes: 4 additions & 114 deletions provider/cmd/pulumi-resource-kubernetes/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion provider/pkg/gen/kinds/kinds.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ func (k Kind) Namespaced() (known bool, namespaced bool) {
CertificateSigningRequest,
ClusterRole,
ClusterRoleBinding,
ComponentStatus,
CSIDriver,
CSINode,
CustomResourceDefinition,
Expand Down
2 changes: 1 addition & 1 deletion provider/pkg/gen/typegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
3 changes: 0 additions & 3 deletions provider/pkg/kinds/kinds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -178,7 +176,6 @@ func (k Kind) Namespaced() (known bool, namespaced bool) {
CertificateSigningRequest,
ClusterRole,
ClusterRoleBinding,
ComponentStatus,
CSIDriver,
CSINode,
CustomResourceDefinition,
Expand Down
135 changes: 0 additions & 135 deletions sdk/dotnet/Core/V1/ComponentStatus.cs

This file was deleted.

Loading

0 comments on commit 4811a8d

Please sign in to comment.