Skip to content

Commit

Permalink
fix typo for csi node
Browse files Browse the repository at this point in the history
Signed-off-by: zwwhdls <[email protected]>
  • Loading branch information
zwwhdls committed Jul 9, 2024
1 parent d97cdee commit 1cb2794
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/debug/debug_pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 1cb2794

Please sign in to comment.