Skip to content

Commit ee78206

Browse files
authored
Merge pull request #299 from banzaicloud/feat/pipeline-3152/node-pool-list-volume-size
feat(cl/np/list): added volume size to the output
2 parents b0dde23 + 3f1bcdc commit ee78206

File tree

9 files changed

+15
-3
lines changed

9 files changed

+15
-3
lines changed

.gen/pipeline/api/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23333,6 +23333,10 @@ components:
2333323333
properties:
2333423334
autoscaling:
2333523335
$ref: '#/components/schemas/NodePoolAutoScaling'
23336+
volumeSize:
23337+
description: Size of the EBS volume in GBs of the nodes in the pool.
23338+
example: 50
23339+
type: integer
2333623340
instanceType:
2333723341
description: Machine instance type.
2333823342
example: m4.xlarge

.gen/pipeline/docs/EksNodePoolAllOf.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Autoscaling** | [**NodePoolAutoScaling**](NodePoolAutoScaling.md) | | [optional]
8+
**VolumeSize** | **int32** | Size of the EBS volume in GBs of the nodes in the pool. | [optional]
89
**InstanceType** | **string** | Machine instance type. |
910
**Image** | **string** | Instance AMI. | [optional]
1011
**SpotPrice** | **string** | The upper limit price for the requested spot instance. If this field is left empty or 0 passed in on-demand instances used instead of spot instances. | [optional]

.gen/pipeline/docs/NodePool.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**Size** | **int32** | Node pool size. |
99
**Labels** | **map[string]string** | Node pool labels. | [optional]
1010
**Autoscaling** | [**NodePoolAutoScaling**](NodePoolAutoScaling.md) | | [optional]
11+
**VolumeSize** | **int32** | Size of the EBS volume in GBs of the nodes in the pool. | [optional]
1112
**InstanceType** | **string** | Machine instance type. |
1213
**Image** | **string** | Instance AMI. | [optional]
1314
**SpotPrice** | **string** | The upper limit price for the requested spot instance. If this field is left empty or 0 passed in on-demand instances used instead of spot instances. | [optional]

.gen/pipeline/model_eks_node_pool_all_of.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.gen/pipeline/model_node_pool.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.gen/pipeline/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package pipeline
22

3-
const PipelineVersion = "0.56.0"
3+
const PipelineVersion = "0.57.0"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ endif
2121
TEST_FORMAT = short-verbose
2222
endif
2323

24-
PIPELINE_VERSION = 0.56.0
24+
PIPELINE_VERSION = 0.57.0
2525
CLOUDINFO_VERSION = 0.13.0
2626
TELESCOPES_VERSION = 0.5.3
2727

internal/cli/command/cluster/nodepool/list.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type nodePoolListItem struct {
4747
Autoscaling nodePoolAutoscaling
4848
MinimumSize int32
4949
MaximumSize int32
50+
VolumeSize int32
5051
InstanceType string
5152
Image string
5253
SpotPrice string
@@ -98,6 +99,7 @@ func runNodePoolList(banzaiCli cli.Cli, options nodePoolListOptions) error {
9899
Autoscaling: newNodePoolAutoscaling(nodePool.Autoscaling.Enabled),
99100
MinimumSize: nodePool.Autoscaling.MinSize,
100101
MaximumSize: nodePool.Autoscaling.MaxSize,
102+
VolumeSize: nodePool.VolumeSize,
101103
InstanceType: nodePool.InstanceType,
102104
Image: nodePool.Image,
103105
SpotPrice: nodePool.SpotPrice,

internal/cli/format/node_pools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func NodePoolsWrite(context formatContext, data interface{}) {
2525
Out: context.Out(),
2626
Color: context.Color(),
2727
Format: context.OutputFormat(),
28-
Fields: []string{"Name", "Size", "Autoscaling", "MinimumSize", "MaximumSize", "InstanceType", "Image", "SpotPrice"},
28+
Fields: []string{"Name", "Size", "Autoscaling", "MinimumSize", "MaximumSize", "VolumeSize", "InstanceType", "Image", "SpotPrice"},
2929
}
3030

3131
err := output.Output(ctx, data)

0 commit comments

Comments
 (0)