Skip to content

Commit 890ebc3

Browse files
Andrew Farriesroboquat
authored andcommitted
Show app cluster in gpctl clusters list output
1 parent bbc39b9 commit 890ebc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/gpctl/cmd/clusters-list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ var clustersListCmd = &cobra.Command{
3333
log.Fatal(err)
3434
}
3535

36-
tpl := `NAME URL STATIC STATE SCORE GOVERNED ADMISSION CONSTRAINTS
36+
tpl := `NAME APPCLUSTER URL STATIC STATE SCORE GOVERNED ADMISSION CONSTRAINTS
3737
{{- range .Status }}
38-
{{ .Name }} {{ .Url }} {{ .Static }} {{ .State }} {{ .Score }} {{ .Governed }} {{ .AdmissionConstraint -}}
38+
{{ .Name }} {{ .ApplicationCluster }} {{ .Url }} {{ .Static }} {{ .State }} {{ .Score }} {{ .Governed }} {{ .AdmissionConstraint -}}
3939
{{ end }}
4040
`
4141
err = getOutputFormat(tpl, "{..name}").Print(resp)

0 commit comments

Comments
 (0)