Skip to content

Commit b17a93e

Browse files
authored
chore(kubernetes): remove server_number column and hide deprecated plans (#386)
1 parent 27aa0ba commit b17a93e

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Experimental support for reading password or token from system keyring.
1313

14+
### Changed
15+
16+
- In human readable output of `kubernetes plans`, remove `server_number` column and hide deprecated plans.
17+
1418
## [3.15.0] - 2025-02-26
1519

1620
### Added

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22
44

55
require (
66
github.com/UpCloudLtd/progress v1.0.2
7-
github.com/UpCloudLtd/upcloud-go-api/v8 v8.16.0
7+
github.com/UpCloudLtd/upcloud-go-api/v8 v8.16.1
88
github.com/adrg/xdg v0.3.2
99
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
1010
github.com/gemalto/flume v0.12.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym
1919
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
2020
github.com/UpCloudLtd/progress v1.0.2 h1:CTr1bBuFuXop9TEhR1PakbUMPTlUVL7Bgae9JgqXwPg=
2121
github.com/UpCloudLtd/progress v1.0.2/go.mod h1:iGxOnb9HvHW0yrLGUjHr0lxHhn7TehgWwh7a8NqK6iQ=
22-
github.com/UpCloudLtd/upcloud-go-api/v8 v8.16.0 h1:sF4RgPKdz5BgN+KMHeHTcTRxuq06cA/VIxV4Mcs/A6I=
23-
github.com/UpCloudLtd/upcloud-go-api/v8 v8.16.0/go.mod h1:bFnrOkfsDDmsb94nnBV5eSQjjsfDnwAzLnCt9+b4t/4=
22+
github.com/UpCloudLtd/upcloud-go-api/v8 v8.16.1 h1:U25DcnOcOWjKxXly9kB5bdrZRR8kdGqfLQHCgkk/T/g=
23+
github.com/UpCloudLtd/upcloud-go-api/v8 v8.16.1/go.mod h1:bFnrOkfsDDmsb94nnBV5eSQjjsfDnwAzLnCt9+b4t/4=
2424
github.com/adrg/xdg v0.3.2 h1:GUSGQ5pHdev83AYhDSS1A/CX+0JIsxbiWtow2DSA+RU=
2525
github.com/adrg/xdg v0.3.2/go.mod h1:7I2hH/IT30IsupOpKZ5ue7/qNi3CoKzD6tL3HwpaRMQ=
2626
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=

internal/commands/kubernetes/plans.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ func (s *plansCommand) ExecuteWithoutArguments(exec commands.Executor) (output.O
3737

3838
rows := []output.TableRow{}
3939
for _, plan := range plans {
40-
rows = append(rows, output.TableRow{
41-
plan.Name,
42-
plan.ServerNumber,
43-
plan.MaxNodes,
44-
})
40+
if !plan.Deprecated {
41+
rows = append(rows, output.TableRow{
42+
plan.Name,
43+
plan.MaxNodes,
44+
})
45+
}
4546
}
4647

4748
return output.MarshaledWithHumanOutput{
4849
Value: plans,
4950
Output: output.Table{
5051
Columns: []output.TableColumn{
5152
{Key: "name", Header: "Name"},
52-
{Key: "server_number", Header: "Control nodes"},
5353
{Key: "max_nodes", Header: "Max worker nodes"},
5454
},
5555
Rows: rows,

0 commit comments

Comments
 (0)