mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-15 20:37:39 +00:00
keep-terminated-pod-volumes flag on kubelet is removed
This commit is contained in:
@@ -174,11 +174,7 @@ func DetermineVolumeAction(pod *v1.Pod, desiredStateOfWorld cache.DesiredStateOf
|
||||
}
|
||||
|
||||
if util.IsPodTerminated(pod, pod.Status) {
|
||||
nodeName := types.NodeName(pod.Spec.NodeName)
|
||||
keepTerminatedPodVolume := desiredStateOfWorld.GetKeepTerminatedPodVolumesForNode(nodeName)
|
||||
// if pod is terminate we let kubelet policy dictate if volume
|
||||
// should be detached or not
|
||||
return keepTerminatedPodVolume
|
||||
return false
|
||||
}
|
||||
return defaultAction
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user