mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
address review comments for rwx volume types
This commit is contained in:
parent
ed217f4140
commit
1809094389
@ -281,7 +281,8 @@ type attachedVolume struct {
|
|||||||
// for this volume and volume expansion on this node should not be retried
|
// for this volume and volume expansion on this node should not be retried
|
||||||
volumeInUseErrorForExpansion bool
|
volumeInUseErrorForExpansion bool
|
||||||
|
|
||||||
// persistentVolumeSize records size of the volume when pod was started.
|
// persistentVolumeSize records size of the volume when pod was started or
|
||||||
|
// size after successful completion of volume expansion operation.
|
||||||
persistentVolumeSize *resource.Quantity
|
persistentVolumeSize *resource.Quantity
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -296,7 +296,8 @@ func (dsw *desiredStateOfWorld) AddPodToVolume(
|
|||||||
if volumeSpec.PersistentVolume != nil {
|
if volumeSpec.PersistentVolume != nil {
|
||||||
pvCap := volumeSpec.PersistentVolume.Spec.Capacity.Storage()
|
pvCap := volumeSpec.PersistentVolume.Spec.Capacity.Storage()
|
||||||
if pvCap != nil {
|
if pvCap != nil {
|
||||||
vmt.persistentVolumeSize = pvCap
|
pvCapCopy := pvCap.DeepCopy()
|
||||||
|
vmt.persistentVolumeSize = &pvCapCopy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user