Unverified Commit e40209a4 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #70607 from jianglingxia/jlx201811021606

fix local volume getVolumeSourceFSType func by golint
parents 7984a2bf 4ead52e0
...@@ -322,10 +322,9 @@ func getVolumeSourceFSType(spec *volume.Spec) (string, error) { ...@@ -322,10 +322,9 @@ func getVolumeSourceFSType(spec *volume.Spec) (string, error) {
spec.PersistentVolume.Spec.Local != nil { spec.PersistentVolume.Spec.Local != nil {
if spec.PersistentVolume.Spec.Local.FSType != nil { if spec.PersistentVolume.Spec.Local.FSType != nil {
return *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") return "", fmt.Errorf("spec does not reference a Local volume type")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment