Merge pull request #80973 from xiaoanyunfei/bugfix/orphan-volume

fix orphaned pod flexvolume  can not be cleaned up
This commit is contained in:
Kubernetes Prow Robot
2020-04-01 20:50:23 -07:00
committed by GitHub
5 changed files with 8 additions and 9 deletions

View File

@@ -128,7 +128,7 @@ var _ = utils.SIGDescribe("Detaching volumes", func() {
})
func getUniqueVolumeName(pod *v1.Pod, driverName string) string {
return fmt.Sprintf("flexvolume-k8s/%s/%s", driverName, pod.Spec.Volumes[0].Name)
return fmt.Sprintf("k8s/%s/%s", driverName, pod.Spec.Volumes[0].Name)
}
func waitForVolumesNotInUse(client clientset.Interface, nodeName, volumeName string) error {