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

Merge pull request #1105 from yanggangtony/fix-notes-for-podutil

fix go doc for method IsPodWithPVC
This commit is contained in:
Kubernetes Prow Robot
2023-04-03 06:19:51 -07:00
committed by GitHub

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 {