fix TestGetPVCInfo failure
@@ -196,7 +196,7 @@ func getPVCInfo(ctx context.Context, kubeCli kubernetes.Interface, namespace str
if err != nil {
return nil, err
}
-
+ }
if pvZone, ok := pvLabels[kube.PVZoneLabelName]; ok {
config[awsebs.ConfigRegion] = region
config[awsebs.AccessKeyID] = tp.Profile.Credential.KeyPair.ID
@@ -208,7 +208,6 @@ func getPVCInfo(ctx context.Context, kubeCli kubernetes.Interface, namespace str
return &volumeInfo{provider: provider, volumeID: filepath.Base(ebs.VolumeID), sType: blockstorage.TypeEBS, volZone: pvZone, pvc: name, size: size, region: region}, nil
}
return nil, errors.Errorf("PV zone label is empty, pvName: %s, namespace: %s", pvName, namespace)
- }
case pv.Spec.GCEPersistentDisk != nil:
gpd := pv.Spec.GCEPersistentDisk
