diff --git a/pkg/kubelet/kubelet_volumes.go b/pkg/kubelet/kubelet_volumes.go index 32b952b0364..ced69e12eec 100644 --- a/pkg/kubelet/kubelet_volumes.go +++ b/pkg/kubelet/kubelet_volumes.go @@ -79,8 +79,7 @@ func (kl *Kubelet) newVolumeMounterFromPlugins(spec *volume.Spec, pod *v1.Pod, o // cleanupOrphanedPodDirs removes the volumes of pods that should not be // running and that have no containers running. Note that we roll up logs here since it runs in the main loop. -func (kl *Kubelet) cleanupOrphanedPodDirs( - pods []*v1.Pod, runningPods []*kubecontainer.Pod) error { +func (kl *Kubelet) cleanupOrphanedPodDirs(pods []*v1.Pod, runningPods []*kubecontainer.Pod) error { allPods := sets.NewString() for _, pod := range pods { allPods.Insert(string(pod.UID)) diff --git a/pkg/volume/host_path/host_path.go b/pkg/volume/host_path/host_path.go index 41d234a5ef6..35e88c17530 100644 --- a/pkg/volume/host_path/host_path.go +++ b/pkg/volume/host_path/host_path.go @@ -298,8 +298,7 @@ func (r *hostPathDeleter) Delete() error { return os.RemoveAll(r.GetPath()) } -func getVolumeSource( - spec *volume.Spec) (*v1.HostPathVolumeSource, bool, error) { +func getVolumeSource(spec *volume.Spec) (*v1.HostPathVolumeSource, bool, error) { if spec.Volume != nil && spec.Volume.HostPath != nil { return spec.Volume.HostPath, spec.ReadOnly, nil } else if spec.PersistentVolume != nil &&