mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
CSIStorageCapacity: mark v1alpha1 as deprecated
We still need the alpha API for testing with current external-provisioner, but then should remove it shortly after the 1.21 release once the external-provisioner is updated to use the beta API. That VolumeAttachment is still defined in the alpha API looks like an oversight. To minimize changes during the beta graduation of CSIStorageCapacity it is left in place with a deprecation notification in 1.21.
This commit is contained in:
parent
85bfd26c17
commit
9e7748c6a5
@ -18,5 +18,6 @@ limitations under the License.
|
|||||||
// +k8s:protobuf-gen=package
|
// +k8s:protobuf-gen=package
|
||||||
// +groupName=storage.k8s.io
|
// +groupName=storage.k8s.io
|
||||||
// +k8s:openapi-gen=true
|
// +k8s:openapi-gen=true
|
||||||
|
// +k8s:prerelease-lifecycle-gen=true
|
||||||
|
|
||||||
package v1alpha1 // import "k8s.io/api/storage/v1alpha1"
|
package v1alpha1 // import "k8s.io/api/storage/v1alpha1"
|
||||||
|
@ -25,6 +25,9 @@ import (
|
|||||||
// +genclient
|
// +genclient
|
||||||
// +genclient:nonNamespaced
|
// +genclient:nonNamespaced
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
// +k8s:prerelease-lifecycle-gen:introduced=1.9
|
||||||
|
// +k8s:prerelease-lifecycle-gen:deprecated=1.21
|
||||||
|
// +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttachment
|
||||||
|
|
||||||
// VolumeAttachment captures the intent to attach or detach the specified volume
|
// VolumeAttachment captures the intent to attach or detach the specified volume
|
||||||
// to/from the specified node.
|
// to/from the specified node.
|
||||||
@ -50,6 +53,9 @@ type VolumeAttachment struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
// +k8s:prerelease-lifecycle-gen:introduced=1.9
|
||||||
|
// +k8s:prerelease-lifecycle-gen:deprecated=1.21
|
||||||
|
// +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1,VolumeAttachmentList
|
||||||
|
|
||||||
// VolumeAttachmentList is a collection of VolumeAttachment objects.
|
// VolumeAttachmentList is a collection of VolumeAttachment objects.
|
||||||
type VolumeAttachmentList struct {
|
type VolumeAttachmentList struct {
|
||||||
@ -138,6 +144,9 @@ type VolumeError struct {
|
|||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
// +k8s:prerelease-lifecycle-gen:introduced=1.19
|
||||||
|
// +k8s:prerelease-lifecycle-gen:deprecated=1.21
|
||||||
|
// +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1beta1,CSIStorageCapacity
|
||||||
|
|
||||||
// CSIStorageCapacity stores the result of one CSI GetCapacity call.
|
// CSIStorageCapacity stores the result of one CSI GetCapacity call.
|
||||||
// For a given StorageClass, this describes the available capacity in a
|
// For a given StorageClass, this describes the available capacity in a
|
||||||
@ -204,6 +213,9 @@ type CSIStorageCapacity struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
// +k8s:prerelease-lifecycle-gen:introduced=1.19
|
||||||
|
// +k8s:prerelease-lifecycle-gen:deprecated=1.21
|
||||||
|
// +k8s:prerelease-lifecycle-gen:replacement=storage.k8s.io,v1beta1,CSIStorageCapacityList
|
||||||
|
|
||||||
// CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
|
// CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
|
||||||
type CSIStorageCapacityList struct {
|
type CSIStorageCapacityList struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user