From 4955ed53532b5c2a12864928e4d11e08d98eec23 Mon Sep 17 00:00:00 2001 From: yanggang Date: Sun, 2 Apr 2023 08:49:52 +0800 Subject: [PATCH] fix IsPodWithPVC func notes. Signed-off-by: yanggang --- pkg/utils/pod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/pod.go b/pkg/utils/pod.go index 39e02aaf0..0063fa562 100644 --- a/pkg/utils/pod.go +++ b/pkg/utils/pod.go @@ -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 {