mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
Mark componentstatus as deprecated
This commit is contained in:
parent
9af4ad5c45
commit
44a8d72d32
4
api/openapi-spec/swagger.json
generated
4
api/openapi-spec/swagger.json
generated
@ -5285,7 +5285,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.api.core.v1.ComponentStatus": {
|
"io.k8s.api.core.v1.ComponentStatus": {
|
||||||
"description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.",
|
"description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+",
|
||||||
"properties": {
|
"properties": {
|
||||||
"apiVersion": {
|
"apiVersion": {
|
||||||
"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",
|
"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",
|
||||||
@ -5319,7 +5319,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"io.k8s.api.core.v1.ComponentStatusList": {
|
"io.k8s.api.core.v1.ComponentStatusList": {
|
||||||
"description": "Status of all the conditions for the component as a list of ComponentStatus objects.",
|
"description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+",
|
||||||
"properties": {
|
"properties": {
|
||||||
"apiVersion": {
|
"apiVersion": {
|
||||||
"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",
|
"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",
|
||||||
|
@ -5109,6 +5109,7 @@ type ComponentCondition struct {
|
|||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
|
// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
|
||||||
|
// Deprecated: This API is deprecated in v1.19+
|
||||||
type ComponentStatus struct {
|
type ComponentStatus struct {
|
||||||
metav1.TypeMeta
|
metav1.TypeMeta
|
||||||
// +optional
|
// +optional
|
||||||
@ -5121,6 +5122,7 @@ type ComponentStatus struct {
|
|||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// ComponentStatusList represents the list of component statuses
|
// ComponentStatusList represents the list of component statuses
|
||||||
|
// Deprecated: This API is deprecated in v1.19+
|
||||||
type ComponentStatusList struct {
|
type ComponentStatusList struct {
|
||||||
metav1.TypeMeta
|
metav1.TypeMeta
|
||||||
// +optional
|
// +optional
|
||||||
|
@ -21,6 +21,7 @@ go_library(
|
|||||||
"annotation_key_constants.go",
|
"annotation_key_constants.go",
|
||||||
"doc.go",
|
"doc.go",
|
||||||
"generated.pb.go",
|
"generated.pb.go",
|
||||||
|
"lifecycle.go",
|
||||||
"objectreference.go",
|
"objectreference.go",
|
||||||
"register.go",
|
"register.go",
|
||||||
"resource.go",
|
"resource.go",
|
||||||
|
@ -424,6 +424,7 @@ message ComponentCondition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
|
// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
|
||||||
|
// Deprecated: This API is deprecated in v1.19+
|
||||||
message ComponentStatus {
|
message ComponentStatus {
|
||||||
// Standard object's metadata.
|
// Standard object's metadata.
|
||||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||||
@ -438,6 +439,7 @@ message ComponentStatus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Status of all the conditions for the component as a list of ComponentStatus objects.
|
// Status of all the conditions for the component as a list of ComponentStatus objects.
|
||||||
|
// Deprecated: This API is deprecated in v1.19+
|
||||||
message ComponentStatusList {
|
message ComponentStatusList {
|
||||||
// Standard list metadata.
|
// Standard list metadata.
|
||||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||||
|
37
staging/src/k8s.io/api/core/v1/lifecycle.go
Normal file
37
staging/src/k8s.io/api/core/v1/lifecycle.go
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1
|
||||||
|
|
||||||
|
// APILifecycleIntroduced returns the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||||
|
func (in *ComponentStatus) APILifecycleIntroduced() (major, minor int) {
|
||||||
|
return 1, 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// APILifecycleDeprecated returns the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||||
|
func (in *ComponentStatus) APILifecycleDeprecated() (major, minor int) {
|
||||||
|
return 1, 19
|
||||||
|
}
|
||||||
|
|
||||||
|
// APILifecycleIntroduced returns the release in which the API struct was introduced as int versions of major and minor for comparison.
|
||||||
|
func (in *ComponentStatusList) APILifecycleIntroduced() (major, minor int) {
|
||||||
|
return 1, 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// APILifecycleDeprecated returns the release in which the API struct was or will be deprecated as int versions of major and minor for comparison.
|
||||||
|
func (in *ComponentStatusList) APILifecycleDeprecated() (major, minor int) {
|
||||||
|
return 1, 19
|
||||||
|
}
|
@ -5828,6 +5828,7 @@ type ComponentCondition struct {
|
|||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
|
// ComponentStatus (and ComponentStatusList) holds the cluster validation info.
|
||||||
|
// Deprecated: This API is deprecated in v1.19+
|
||||||
type ComponentStatus struct {
|
type ComponentStatus struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
// Standard object's metadata.
|
// Standard object's metadata.
|
||||||
@ -5845,6 +5846,7 @@ type ComponentStatus struct {
|
|||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// Status of all the conditions for the component as a list of ComponentStatus objects.
|
// Status of all the conditions for the component as a list of ComponentStatus objects.
|
||||||
|
// Deprecated: This API is deprecated in v1.19+
|
||||||
type ComponentStatusList struct {
|
type ComponentStatusList struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
// Standard list metadata.
|
// Standard list metadata.
|
||||||
|
@ -230,7 +230,7 @@ func (ComponentCondition) SwaggerDoc() map[string]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var map_ComponentStatus = map[string]string{
|
var map_ComponentStatus = map[string]string{
|
||||||
"": "ComponentStatus (and ComponentStatusList) holds the cluster validation info.",
|
"": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+",
|
||||||
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
"conditions": "List of component conditions observed",
|
"conditions": "List of component conditions observed",
|
||||||
}
|
}
|
||||||
@ -240,7 +240,7 @@ func (ComponentStatus) SwaggerDoc() map[string]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var map_ComponentStatusList = map[string]string{
|
var map_ComponentStatusList = map[string]string{
|
||||||
"": "Status of all the conditions for the component as a list of ComponentStatus objects.",
|
"": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+",
|
||||||
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||||||
"items": "List of ComponentStatus objects.",
|
"items": "List of ComponentStatus objects.",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user