Skip to content

Commit

Permalink
Merge pull request #6 from juicedata/fix/typo
Browse files Browse the repository at this point in the history
fix typo for csi node
  • Loading branch information
zwwhdls authored Jul 9, 2024
2 parents d97cdee + 1cb2794 commit 69f7a9d
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 69f7a9d

Please sign in to comment.