fix wrong comments of dra

Signed-off-by: Xuzheng Chang <changxuzheng@huawei.com>
This commit is contained in:
Xuzheng Chang 2024-04-07 15:36:59 +08:00
parent 9791f0d1f3
commit 3e08030d53

View File

@ -547,7 +547,7 @@ func (ec *Controller) syncPod(ctx context.Context, namespace, name string) error
return nil return nil
} }
// handleResourceClaim is invoked for each volume of a pod. // handleResourceClaim is invoked for each resource claim of a pod.
func (ec *Controller) handleClaim(ctx context.Context, pod *v1.Pod, podClaim v1.PodResourceClaim, newPodClaims *map[string]string) error { func (ec *Controller) handleClaim(ctx context.Context, pod *v1.Pod, podClaim v1.PodResourceClaim, newPodClaims *map[string]string) error {
logger := klog.LoggerWithValues(klog.FromContext(ctx), "podClaim", podClaim.Name) logger := klog.LoggerWithValues(klog.FromContext(ctx), "podClaim", podClaim.Name)
ctx = klog.NewContext(ctx, logger) ctx = klog.NewContext(ctx, logger)