File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ var workspacesListCmd = &cobra.Command{
41
41
Type string
42
42
Pod string
43
43
Active bool
44
+ Node string
44
45
}
45
46
46
47
var out []PrintWorkspace
@@ -65,12 +66,13 @@ var workspacesListCmd = &cobra.Command{
65
66
Type : w .GetSpec ().GetType ().String (),
66
67
Pod : pod ,
67
68
Active : w .GetConditions ().FirstUserActivity != nil ,
69
+ Node : w .Runtime .NodeName ,
68
70
})
69
71
}
70
72
71
- tpl := `OWNER WORKSPACE INSTANCE PHASE TYPE POD ACTIVE
73
+ tpl := `OWNER WORKSPACE INSTANCE PHASE TYPE POD ACTIVE NODE
72
74
{{- range . }}
73
- {{ .Owner }} {{ .WorkspaceID }} {{ .Instance }} {{ .Phase }} {{ .Type }} {{ .Pod }} {{ .Active -}}
75
+ {{ .Owner }} {{ .WorkspaceID }} {{ .Instance }} {{ .Phase }} {{ .Type }} {{ .Pod }} {{ .Active }} {{ .Node -}}
74
76
{{ end }}
75
77
`
76
78
err = getOutputFormat (tpl , "{.id}" ).Print (out )
You can’t perform that action at this time.
0 commit comments