Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions pkg/cli/admin/upgrade/status/controlplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,17 @@ func (d *controlPlaneStatusDisplayData) Write(f io.Writer, detailed bool, now ti
if reason == "" {
reason = "-"
}
_, _ = table.Write([]byte(o.Name + "\t"))
_, _ = table.Write([]byte(shortDuration(now.Sub(o.Condition.LastTransitionTime.Time)) + "\t"))
_, _ = table.Write([]byte(reason + "\t"))
_, _ = table.Write([]byte(o.Condition.Message + "\n"))
lines := strings.Split(o.Condition.Message, "\n")
for i, line := range lines {
if i == 0 {
_, _ = table.Write([]byte(o.Name + "\t"))
_, _ = table.Write([]byte(shortDuration(now.Sub(o.Condition.LastTransitionTime.Time)) + "\t"))
_, _ = table.Write([]byte(reason + "\t"))
_, _ = table.Write([]byte(line + "\n"))
} else {
_, _ = table.Write([]byte("\t\t\t" + line + "\n"))
}
}
}
if err := table.Flush(); err != nil {
return err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1252,8 +1252,10 @@ items:
status: "False"
type: Degraded
- lastTransitionTime: "2024-08-05T15:58:26Z"
message: 'NodeInstallerProgressing: 1 node is at revision 8; 0 nodes have achieved
new revision 10'
message: |-
NodeInstallerProgressing: 1 node is at revision 8; 0 nodes have achieved new revision 10
Test line breaks
New line
reason: NodeInstaller
status: "True"
type: Progressing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Operator Health: 32 Healthy, 1 Available but degraded
Updating Cluster Operators
NAME SINCE REASON MESSAGE
kube-apiserver 2m NodeInstaller NodeInstallerProgressing: 1 node is at revision 8; 0 nodes have achieved new revision 10
Test line breaks
New line

Control Plane Nodes
NAME ASSESSMENT PHASE VERSION EST MESSAGE
Expand Down