mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
fix azure file size grow issue
This commit is contained in:
parent
b9e46f5422
commit
e330741d6d
@ -150,7 +150,7 @@ func (plugin *azureFilePlugin) ExpandVolumeDevice(
|
|||||||
newSize resource.Quantity,
|
newSize resource.Quantity,
|
||||||
oldSize resource.Quantity) (resource.Quantity, error) {
|
oldSize resource.Quantity) (resource.Quantity, error) {
|
||||||
|
|
||||||
if spec.PersistentVolume != nil || spec.PersistentVolume.Spec.AzureFile == nil {
|
if spec.PersistentVolume == nil || spec.PersistentVolume.Spec.AzureFile == nil {
|
||||||
return oldSize, fmt.Errorf("invalid PV spec")
|
return oldSize, fmt.Errorf("invalid PV spec")
|
||||||
}
|
}
|
||||||
shareName := spec.PersistentVolume.Spec.AzureFile.ShareName
|
shareName := spec.PersistentVolume.Spec.AzureFile.ShareName
|
||||||
|
Loading…
Reference in New Issue
Block a user