Skip to content

Commit

Permalink
merge(#349): added VolumeType to cl np ls
Browse files Browse the repository at this point in the history
Added VolumeType to `banzai cluster nodepool list`
#349
  • Loading branch information
pregnor authored Jun 28, 2021
2 parents ab82610 + 5879220 commit 5a2a624
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/cli/command/cluster/nodepool/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type nodePoolListItem struct {
MaximumSize int32
VolumeEncryption nodePoolVolumeEncryption
VolumeSize int32
VolumeType string
InstanceType string
Image string
SpotPrice string
Expand Down Expand Up @@ -136,6 +137,7 @@ func runNodePoolList(banzaiCli cli.Cli, options nodePoolListOptions) error {
MaximumSize: nodePool.Autoscaling.MaxSize,
VolumeEncryption: newNodePoolVolumeEncryption(nodePool.VolumeEncryption),
VolumeSize: nodePool.VolumeSize,
VolumeType: nodePool.VolumeType,
InstanceType: nodePool.InstanceType,
Image: nodePool.Image,
SpotPrice: nodePool.SpotPrice,
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/format/node_pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NodePoolsWrite(context formatContext, data interface{}) {
Out: context.Out(),
Color: context.Color(),
Format: context.OutputFormat(),
Fields: []string{"Name", "Size", "Autoscaling", "MinimumSize", "MaximumSize", "VolumeEncryption", "VolumeSize", "InstanceType", "Image", "SpotPrice", "SubnetID", "SecurityGroups", "Status", "StatusMessage"},
Fields: []string{"Name", "Size", "Autoscaling", "MinimumSize", "MaximumSize", "VolumeEncryption", "VolumeSize", "VolumeType", "InstanceType", "Image", "SpotPrice", "SubnetID", "SecurityGroups", "Status", "StatusMessage"},
}

err := output.Output(ctx, data)
Expand Down

0 comments on commit 5a2a624

Please sign in to comment.