@@ -11,6 +11,7 @@ import (
1111 "stackit/internal/pkg/examples"
1212 "stackit/internal/pkg/globalflags"
1313 "stackit/internal/pkg/services/mongodbflex/client"
14+ mongodbflexUtils "stackit/internal/pkg/services/mongodbflex/utils"
1415 "stackit/internal/pkg/tables"
1516 "stackit/internal/pkg/utils"
1617
@@ -91,6 +92,12 @@ func outputResult(cmd *cobra.Command, outputFormat string, instance *mongodbflex
9192 acls := * instance .Acl .Items
9293 strings .Join (acls , "," )
9394
95+ instanceType , err := mongodbflexUtils .GetInstanceType (* instance .Replicas )
96+ if err != nil {
97+ // Should never happen
98+ instanceType = ""
99+ }
100+
94101 table := tables .NewTable ()
95102 table .AddRow ("ID" , * instance .Id )
96103 table .AddSeparator ()
@@ -106,11 +113,15 @@ func outputResult(cmd *cobra.Command, outputFormat string, instance *mongodbflex
106113 table .AddSeparator ()
107114 table .AddRow ("FLAVOR DESCRIPTION" , * instance .Flavor .Description )
108115 table .AddSeparator ()
116+ table .AddRow ("TYPE" , instanceType )
117+ table .AddSeparator ()
118+ table .AddRow ("REPLICAS" , * instance .Replicas )
119+ table .AddSeparator ()
109120 table .AddRow ("CPU" , * instance .Flavor .Cpu )
110121 table .AddSeparator ()
111122 table .AddRow ("RAM" , * instance .Flavor .Memory )
112123 table .AddSeparator ()
113- err : = table .Display (cmd )
124+ err = table .Display (cmd )
114125 if err != nil {
115126 return fmt .Errorf ("render table: %w" , err )
116127 }
0 commit comments