Skip to content

Commit

Permalink
Merge pull request #672 from anispate/OSD-24628
Browse files Browse the repository at this point in the history
OSD-24628 - added external id to osdctl org clusters
  • Loading branch information
openshift-merge-bot[bot] authored Feb 24, 2025
2 parents 6a2d3fc + 735e9d3 commit 662d121
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/org/clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func printClusters(items []*accountsv1.Subscription) {
for _, item := range items {
subscription := map[string]string{
"cluster_id": item.ClusterID(),
"external_id": item.ExternalClusterID(),
"display_name": item.DisplayName(),
"status": item.Status(),
}
Expand All @@ -146,12 +147,13 @@ func printClusters(items []*accountsv1.Subscription) {
PrintJson(subscriptions)
} else {
table := printer.NewTablePrinter(os.Stdout, 20, 1, 3, ' ')
table.AddRow([]string{"DISPLAY NAME", "CLUSTER ID", "STATUS"})
table.AddRow([]string{"DISPLAY NAME", "INTERNAL CLUSTER ID", "EXTERNAL CLUSTER ID", "STATUS"})

for _, subscription := range items {
table.AddRow([]string{
subscription.DisplayName(),
subscription.ClusterID(),
subscription.ExternalClusterID(),
subscription.Status(),
})
}
Expand Down

0 comments on commit 662d121

Please sign in to comment.