Merge pull request #70607 from jianglingxia/jlx201811021606

fix local volume getVolumeSourceFSType func by golint
This commit is contained in:
k8s-ci-robot 2018-11-05 19:04:54 -08:00 committed by GitHub
commit e40209a433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,10 +322,9 @@ func getVolumeSourceFSType(spec *volume.Spec) (string, error) {
spec.PersistentVolume.Spec.Local != nil {
if spec.PersistentVolume.Spec.Local.FSType != nil {
return *spec.PersistentVolume.Spec.Local.FSType, nil
} else {
// if the FSType is not set in local PV spec, setting it to default ("ext4")
return defaultFSType, nil
}
// if the FSType is not set in local PV spec, setting it to default ("ext4")
return defaultFSType, nil
}
return "", fmt.Errorf("spec does not reference a Local volume type")