Fix PVC nil pointer dereference during migration-enabled volume expand

This commit is contained in:
Matthew Wong
2022-08-17 11:32:22 -07:00
parent 93054957c1
commit a322a708f3
2 changed files with 7 additions and 12 deletions

View File

@@ -54,11 +54,6 @@ type resizeProcessStatus struct {
processed bool
}
// ClaimToClaimKey return namespace/name string for pvc
func ClaimToClaimKey(claim *v1.PersistentVolumeClaim) string {
return fmt.Sprintf("%s/%s", claim.Namespace, claim.Name)
}
// UpdatePVSize updates just pv size after cloudprovider resizing is successful
func UpdatePVSize(
pv *v1.PersistentVolume,