mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
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
This commit is contained in:
commit
cf27c256ea
@ -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