File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed
internal/commands/kubernetes Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 44
55require (
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
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym
1919github.com/OneOfOne/xxhash v1.2.2 /go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU =
2020github.com/UpCloudLtd/progress v1.0.2 h1:CTr1bBuFuXop9TEhR1PakbUMPTlUVL7Bgae9JgqXwPg =
2121github.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 =
2424github.com/adrg/xdg v0.3.2 h1:GUSGQ5pHdev83AYhDSS1A/CX+0JIsxbiWtow2DSA+RU =
2525github.com/adrg/xdg v0.3.2 /go.mod h1:7I2hH/IT30IsupOpKZ5ue7/qNi3CoKzD6tL3HwpaRMQ =
2626github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc /go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc =
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments