1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 13:29:11 +01:00

fix IsPodWithPVC func notes.

Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
yanggang
2023-04-02 08:49:52 +08:00
parent aba0064d49
commit 4955ed5353

View File

@@ -105,7 +105,7 @@ func IsPodWithLocalStorage(pod *v1.Pod) bool {
return false
}
// IsPodWithLocalStorage returns true if the pod has claimed a persistent volume.
// IsPodWithPVC returns true if the pod has claimed a persistent volume.
func IsPodWithPVC(pod *v1.Pod) bool {
for _, volume := range pod.Spec.Volumes {
if volume.PersistentVolumeClaim != nil {