From 1cb27940b9e55c75b929947c960426e8b76211bb Mon Sep 17 00:00:00 2001 From: zwwhdls Date: Tue, 9 Jul 2024 15:55:50 +0800 Subject: [PATCH] fix typo for csi node Signed-off-by: zwwhdls --- pkg/debug/debug_pod.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/debug/debug_pod.go b/pkg/debug/debug_pod.go index f3588e3..3d4c17b 100644 --- a/pkg/debug/debug_pod.go +++ b/pkg/debug/debug_pod.go @@ -206,7 +206,7 @@ func (p *podDescribe) debugRunningPod() *podDescribe { p.failedf("CSI node not found on node [%s], please check if there are taints on node.", p.node) } if p.csiNodePod != nil && !util.IsPodReady(p.csiNodePod) { - p.failedf("CSI node [%s] is not ready.", p.node) + p.failedf("CSI node [%s] is not ready.", p.csiNode.name) } // 5. mount pod not ready @@ -239,7 +239,7 @@ func (p *podDescribe) debugTerminatingPod() *podDescribe { p.failedf("CSI node not found on node [%s], please check if there are taints on node.", p.node) } if !util.IsPodReady(p.csiNodePod) { - p.failedf("CSI node [%s] is not ready.", p.node) + p.failedf("CSI node [%s] is not ready.", p.csiNode.name) } // 3. mount pod not terminating or contain pod uid @@ -286,7 +286,7 @@ func (p *podDescribe) describe() (string, error) { if p.csiNode != nil { w.Write(kdescribe.LEVEL_1, "Name:\t%s\n", p.csiNode.name) w.Write(kdescribe.LEVEL_1, "Namespace:\t%s\n", p.csiNode.namespace) - w.Write(kdescribe.LEVEL_1, "Status:\t%s\n", p.node.status) + w.Write(kdescribe.LEVEL_1, "Status:\t%s\n", p.csiNode.status) } w.Write(kdescribe.LEVEL_0, "PVCs: \n")