Add namespaces to port forward list
@@ -28,7 +28,7 @@ func (d *PortForwardListDescriber) Describe(ctx context.Context, prefix, namespa
list := component.NewList("Port Forwards", nil)
- tblCols := component.NewTableCols("Name", "Ports", "Age")
+ tblCols := component.NewTableCols("Name", "Namespace", "Ports", "Age")
tbl := component.NewTable("Port Forwards", tblCols)
list.Add(tbl)
@@ -42,6 +42,7 @@ func (d *PortForwardListDescriber) Describe(ctx context.Context, prefix, namespa
pfRow := component.TableRow{
"Name": nameLink,
+ "Namespace": component.NewText(namespace),
"Ports": describePortForwardPorts(pf),
"Age": component.NewTimestamp(pf.CreatedAt),
}
