From 3681c739c9ee0d163a601d16f38d9f08bdb453cb Mon Sep 17 00:00:00 2001 From: styshoo Date: Tue, 21 Jan 2025 18:37:45 +0800 Subject: [PATCH] fix: pod crashed when creating init pod, new pod always fail because the init pod already exists --- cmd/provisioner-localpv/app/helper_hostpath.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/provisioner-localpv/app/helper_hostpath.go b/cmd/provisioner-localpv/app/helper_hostpath.go index b0a756b5..99c647e6 100644 --- a/cmd/provisioner-localpv/app/helper_hostpath.go +++ b/cmd/provisioner-localpv/app/helper_hostpath.go @@ -317,8 +317,8 @@ func (p *Provisioner) launchPod(ctx context.Context, config podConfig) (*corev1. return nil, err } if podList.Items != nil && len(podList.Items) != 0 { - klog.Infof("existing helper podList length: %d", len(podList.Items)) - klog.Infof("existing helper pod: %v", podList.Items[0]) + klog.V(2).Infof("existing helper podList length: %d", len(podList.Items)) + klog.V(2).Infof("existing helper pod: %s/%s", podList.Items[0].Namespace, podList.Items[0].Name) return &podList.Items[0], nil }