mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
storage capacity: clarify relationship between capacity fields
This commit is contained in:
parent
921edae2b4
commit
5122b6bb92
@ -572,8 +572,13 @@ type CSINodeList struct {
|
|||||||
//
|
//
|
||||||
// The producer of these objects can decide which approach is more suitable.
|
// The producer of these objects can decide which approach is more suitable.
|
||||||
//
|
//
|
||||||
// They are consumed by the kube-scheduler if a CSI driver opts into
|
// They are consumed by the kube-scheduler when a CSI driver opts into
|
||||||
// capacity-aware scheduling with CSIDriverSpec.StorageCapacity.
|
// capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler
|
||||||
|
// compares the MaximumVolumeSize against the requested size of pending volumes
|
||||||
|
// to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back
|
||||||
|
// to a comparison against the less precise Capacity. If that is also unset,
|
||||||
|
// the scheduler assumes that capacity is insufficient and tries some other
|
||||||
|
// node.
|
||||||
type CSIStorageCapacity struct {
|
type CSIStorageCapacity struct {
|
||||||
metav1.TypeMeta
|
metav1.TypeMeta
|
||||||
// Standard object's metadata. The name has no particular meaning. It must be
|
// Standard object's metadata. The name has no particular meaning. It must be
|
||||||
@ -612,7 +617,7 @@ type CSIStorageCapacity struct {
|
|||||||
// The semantic is currently (CSI spec 1.2) defined as:
|
// The semantic is currently (CSI spec 1.2) defined as:
|
||||||
// The available capacity, in bytes, of the storage that can be used
|
// The available capacity, in bytes, of the storage that can be used
|
||||||
// to provision volumes. If not set, that information is currently
|
// to provision volumes. If not set, that information is currently
|
||||||
// unavailable and treated like zero capacity.
|
// unavailable.
|
||||||
//
|
//
|
||||||
// +optional
|
// +optional
|
||||||
Capacity *resource.Quantity
|
Capacity *resource.Quantity
|
||||||
|
@ -579,8 +579,13 @@ type CSINodeList struct {
|
|||||||
//
|
//
|
||||||
// The producer of these objects can decide which approach is more suitable.
|
// The producer of these objects can decide which approach is more suitable.
|
||||||
//
|
//
|
||||||
// They are consumed by the kube-scheduler if a CSI driver opts into
|
// They are consumed by the kube-scheduler when a CSI driver opts into
|
||||||
// capacity-aware scheduling with CSIDriverSpec.StorageCapacity.
|
// capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler
|
||||||
|
// compares the MaximumVolumeSize against the requested size of pending volumes
|
||||||
|
// to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back
|
||||||
|
// to a comparison against the less precise Capacity. If that is also unset,
|
||||||
|
// the scheduler assumes that capacity is insufficient and tries some other
|
||||||
|
// node.
|
||||||
type CSIStorageCapacity struct {
|
type CSIStorageCapacity struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
// Standard object's metadata. The name has no particular meaning. It must be
|
// Standard object's metadata. The name has no particular meaning. It must be
|
||||||
@ -619,7 +624,7 @@ type CSIStorageCapacity struct {
|
|||||||
// The semantic is currently (CSI spec 1.2) defined as:
|
// The semantic is currently (CSI spec 1.2) defined as:
|
||||||
// The available capacity, in bytes, of the storage that can be used
|
// The available capacity, in bytes, of the storage that can be used
|
||||||
// to provision volumes. If not set, that information is currently
|
// to provision volumes. If not set, that information is currently
|
||||||
// unavailable and treated like zero capacity.
|
// unavailable.
|
||||||
//
|
//
|
||||||
// +optional
|
// +optional
|
||||||
Capacity *resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,4,opt,name=capacity"`
|
Capacity *resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,4,opt,name=capacity"`
|
||||||
|
@ -165,8 +165,13 @@ type VolumeError struct {
|
|||||||
//
|
//
|
||||||
// The producer of these objects can decide which approach is more suitable.
|
// The producer of these objects can decide which approach is more suitable.
|
||||||
//
|
//
|
||||||
// They are consumed by the kube-scheduler if a CSI driver opts into
|
// They are consumed by the kube-scheduler when a CSI driver opts into
|
||||||
// capacity-aware scheduling with CSIDriverSpec.StorageCapacity.
|
// capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler
|
||||||
|
// compares the MaximumVolumeSize against the requested size of pending volumes
|
||||||
|
// to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back
|
||||||
|
// to a comparison against the less precise Capacity. If that is also unset,
|
||||||
|
// the scheduler assumes that capacity is insufficient and tries some other
|
||||||
|
// node.
|
||||||
type CSIStorageCapacity struct {
|
type CSIStorageCapacity struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
// Standard object's metadata. The name has no particular meaning. It must be
|
// Standard object's metadata. The name has no particular meaning. It must be
|
||||||
@ -205,7 +210,7 @@ type CSIStorageCapacity struct {
|
|||||||
// The semantic is currently (CSI spec 1.2) defined as:
|
// The semantic is currently (CSI spec 1.2) defined as:
|
||||||
// The available capacity, in bytes, of the storage that can be used
|
// The available capacity, in bytes, of the storage that can be used
|
||||||
// to provision volumes. If not set, that information is currently
|
// to provision volumes. If not set, that information is currently
|
||||||
// unavailable and treated like zero capacity.
|
// unavailable.
|
||||||
//
|
//
|
||||||
// +optional
|
// +optional
|
||||||
Capacity *resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,4,opt,name=capacity"`
|
Capacity *resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,4,opt,name=capacity"`
|
||||||
|
@ -604,8 +604,13 @@ type CSINodeList struct {
|
|||||||
//
|
//
|
||||||
// The producer of these objects can decide which approach is more suitable.
|
// The producer of these objects can decide which approach is more suitable.
|
||||||
//
|
//
|
||||||
// They are consumed by the kube-scheduler if a CSI driver opts into
|
// They are consumed by the kube-scheduler when a CSI driver opts into
|
||||||
// capacity-aware scheduling with CSIDriverSpec.StorageCapacity.
|
// capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler
|
||||||
|
// compares the MaximumVolumeSize against the requested size of pending volumes
|
||||||
|
// to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back
|
||||||
|
// to a comparison against the less precise Capacity. If that is also unset,
|
||||||
|
// the scheduler assumes that capacity is insufficient and tries some other
|
||||||
|
// node.
|
||||||
type CSIStorageCapacity struct {
|
type CSIStorageCapacity struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
// Standard object's metadata. The name has no particular meaning. It must be
|
// Standard object's metadata. The name has no particular meaning. It must be
|
||||||
@ -644,7 +649,7 @@ type CSIStorageCapacity struct {
|
|||||||
// The semantic is currently (CSI spec 1.2) defined as:
|
// The semantic is currently (CSI spec 1.2) defined as:
|
||||||
// The available capacity, in bytes, of the storage that can be used
|
// The available capacity, in bytes, of the storage that can be used
|
||||||
// to provision volumes. If not set, that information is currently
|
// to provision volumes. If not set, that information is currently
|
||||||
// unavailable and treated like zero capacity.
|
// unavailable.
|
||||||
//
|
//
|
||||||
// +optional
|
// +optional
|
||||||
Capacity *resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,4,opt,name=capacity"`
|
Capacity *resource.Quantity `json:"capacity,omitempty" protobuf:"bytes,4,opt,name=capacity"`
|
||||||
|
Loading…
Reference in New Issue
Block a user