mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
fix expand panic
This commit is contained in:
parent
5de71ab1d4
commit
74b197e7fe
@ -1253,6 +1253,9 @@ func (og *operationGenerator) GenerateExpandVolumeFunc(
|
||||
if err != nil {
|
||||
return volumetypes.GeneratedOperations{}, fmt.Errorf("Error finding plugin for expanding volume: %q with error %v", pvcWithResizeRequest.QualifiedName(), err)
|
||||
}
|
||||
if volumePlugin == nil {
|
||||
return volumetypes.GeneratedOperations{}, fmt.Errorf("Can not find plugin for expanding volume: %q", pvcWithResizeRequest.QualifiedName())
|
||||
}
|
||||
|
||||
expandVolumeFunc := func() (error, error) {
|
||||
newSize := pvcWithResizeRequest.ExpectedSize
|
||||
|
Loading…
Reference in New Issue
Block a user