mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +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
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -296,7 +296,8 @@ func (dsw *desiredStateOfWorld) AddPodToVolume(
|
||||
if volumeSpec.PersistentVolume != nil {
|
||||
pvCap := volumeSpec.PersistentVolume.Spec.Capacity.Storage()
|
||||
if pvCap != nil {
|
||||
vmt.persistentVolumeSize = pvCap
|
||||
pvCapCopy := pvCap.DeepCopy()
|
||||
vmt.persistentVolumeSize = &pvCapCopy
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user