mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Merge pull request #80973 from xiaoanyunfei/bugfix/orphan-volume
fix orphaned pod flexvolume can not be cleaned up
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user