Unverified Commit cf27c256 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #64383 from andyzhangx/azurefile-sizegrow-fix

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix azure file size grow issue **What this PR does / why we need it**: fix azure file size grow issue **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #64382 **Special notes for your reviewer**: **Release note**: ``` fix azure file size grow issue ``` /sig azure /assign @feiskyer
parents 85f9108d e330741d
...@@ -150,7 +150,7 @@ func (plugin *azureFilePlugin) ExpandVolumeDevice( ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment