Skip to content

Commit 4005aee

Browse files
authored
chore: prepare release v3.0.0 (#264)
- Update `v2` to `v3` in package name - Sync `server plans` output with list commands - Sort changes under _Changed_ header by service name
1 parent 6dbb720 commit 4005aee

248 files changed

Lines changed: 839 additions & 827 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ci/docs/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"log"
55

6-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/core"
6+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/core"
77
"github.com/spf13/cobra"
88
)
99

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ before:
66
builds:
77
- env:
88
- CGO_ENABLED=0
9-
- GO_MODULE_NAME=github.com/UpCloudLtd/upcloud-cli/v2
9+
- GO_MODULE_NAME=github.com/UpCloudLtd/upcloud-cli/v3
1010
goos:
1111
- linux
1212
- windows

CHANGELOG.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [3.0.0] - 2023-10-18
11+
12+
This release updates output of `show` and `list` commands to return the API response as defined in the UpCloud Go SDK. See below for detailed list of changes.
13+
14+
In addition, `kubernetes create` will now, by default, block all access to the cluster. To be able to connect to the cluster, define list of allowed IP addresses and/or CIDR blocks or allow access from any IP.
15+
1016
### Added
11-
- **Breaking**: Add `Kubernetes API allowed IPs` field to `kubernetes show` output. This changes default behavior from _allow access from any IP_ to _block access from all IPs_. To be able to connect to the cluster, define list of allowed IP addresses and/or CIDR blocks or allow access from any IP.
17+
- **Breaking**: Add `--kubernetes-api-allow-ip` argument to `kubernetes create` command. This changes default behavior from _allow access from any IP_ to _block access from all IPs_. To be able to connect to the cluster, define list of allowed IP addresses and/or CIDR blocks or allow access from any IP.
18+
- Add `Kubernetes API allowed IPs` field to `kubernetes show` output.
1219
- Add `kubernetes nodegroup show` for displaying node-group details. This also adds _Nodes_ table and _Anti-affinity_ field that were not available in previous `kubernetes show` output.
1320
- Add `kubernetes modify` command for modifying IP addresses that are allowed to access cluster's Kubernetes API.
14-
- Add `--kubernetes-api-allow-ip` argument to `kubernetes create` command.
1521
- Add `Kubernetes API allowed IPs` field to `kubernetes show` output.
16-
- Add `database session list` for listing active database sessions
17-
- Add `database session cancel` for cancelling an active database session
22+
- Add `database session list` for listing active database sessions.
23+
- Add `database session cancel` for cancelling an active database session.
1824

1925
### Changed
20-
- **Breaking**: In JSON and YAML output of `loadbalancer list`: display full API response. This changes `state` field to `operational_state`.
21-
- **Breaking**: `storage list` and `storage show` JSON and YAML outputs to return full API response. This changes `servers` field to contain `server` field, which in turn contains the servers. `labels` field will not be outputted if empty.
22-
- **Breaking**: `server list` and `server show` JSON and YAML outputs to return full API response. This changes field `host_id` to `host`. `nics` is replaced with `networking` subfield `interfaces`. `storage` is replaced with `storage_devices`. `labels` contain subfield `label` which in turn contains the labels.
23-
- **Breaking**: `server firewall show` JSON and YAML outputs to return full API response. This removes fields `destination` and `source` fields in favor of `[destination|source]_address_start`, `[destination|source]_address_end`, `[destination|source]_port_start` and `[destination|source]_port_end`
24-
- In JSON and YAML output of `kubernetes list`: display full API response.
25-
- **Breaking**: In JSON and YAML output of `database list`: display the full API response. Value of `title` is not replaced with value from `name`, if `title` is empty.
26-
- **Breaking**: In JSON and YAML output of `database types`: display the full API response. This changes the top level datatype from list to object, where keys are the available database type, e.g., `pg` and `mysql`.
27-
- **Breaking**: In JSON and YAML output of `ip-address list`: display full API response. This changes `partofplan` key to `part_of_plan` and `ptrrecord` key to `ptr_record`.
28-
- **Breaking**: In JSON and YAML output of `network list` and `network show`: display full API response. Servers list will only contain server UUID and name. `ip_networks` contains subfield `ip_network` which in turn contains the networks.
26+
- **Breaking**: In JSON and YAML output of `database list`: return the full API response. Value of `title` is not replaced with value from `name`, if `title` is empty.
27+
- **Breaking**: In JSON and YAML output of `database types`: return the full API response. This changes the top level datatype from list to object, where keys are the available database type, e.g., `pg` and `mysql`.
28+
- **Breaking**: In JSON and YAML output of `ip-address list`: return the full API response. This changes `partofplan` key to `part_of_plan` and `ptrrecord` key to `ptr_record`. The top level data-type changes from list to object.
29+
- **Breaking**: In JSON and YAML output of `loadbalancer list`: return the full API response. This changes `state` field to `operational_state`.
30+
- **Breaking**: In JSON and YAML output of `network list` and `network show`: return the full API response. Servers list will only contain server UUID and name. In `network list` output, the top level data-type changes from list to object.
31+
- **Breaking**: In JSON and YAML output of `server list` and `server show`: return the full API response. This changes field `host_id` to `host`. `nics` is replaced with `networking` subfield `interfaces`. `storage` is replaced with `storage_devices`. `labels` contain subfield `label` which in turn contains the labels. In `server list` output, the top level data-type changes from list to object.
32+
- **Breaking**: In JSON and YAML output of `server firewall show`: return the full API response. This removes fields `destination` and `source` fields in favor of `[destination|source]_address_start`, `[destination|source]_address_end`, `[destination|source]_port_start` and `[destination|source]_port_end`.
33+
- **Breaking**: In JSON and YAML output of `server plans`: return the full API response. The top level data-type changes from list to object.
34+
- **Breaking**: In JSON and YAML output of `storage list` and `storage show`: return the full API response. This changes `servers` field to contain `server` field, which in turn contains the servers. `labels` field will not be outputted if empty. In `storage list` output, the top level data-type changes from list to object.
35+
- **Breaking**: In JSON and YAML output of `zone list`: return the full API response. The top level data-type changes from list to object.
36+
- In JSON and YAML output of `kubernetes list`: return the full API response.
2937
- In human readable output of `kubernetes show` command, show node-groups as table. Node-group details are available with `kubernetes nodegroup show` command.
3038

3139
## Fixed
@@ -285,7 +293,8 @@ Initial public beta release :tada:
285293
### Added
286294
- Current feature set added! First internal release
287295
288-
[Unreleased]: https://github.com/UpCloudLtd/upcloud-cli/compare/v2.10.0...HEAD
296+
[Unreleased]: https://github.com/UpCloudLtd/upcloud-cli/compare/v3.0.0...HEAD
297+
[3.0.0]: https://github.com/UpCloudLtd/upcloud-cli/compare/v2.10.0...v3.0.0
289298
[2.10.0]: https://github.com/UpCloudLtd/upcloud-cli/compare/v2.9.1...v2.10.0
290299
[2.9.1]: https://github.com/UpCloudLtd/upcloud-cli/compare/v2.9.0...v2.9.1
291300
[2.9.0]: https://github.com/UpCloudLtd/upcloud-cli/compare/v2.8.0...v2.9.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Use "upctl [command] --help" for more information about a command.
6363
Install the latest with Go by running:
6464

6565
```bash
66-
go install github.com/UpCloudLtd/upcloud-cli/v2/...@latest
66+
go install github.com/UpCloudLtd/upcloud-cli/v3/...@latest
6767
```
6868

6969
To use upctl as a binary, download it from the

cmd/upctl/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"os"
55

6-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/core"
6+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/core"
77
)
88

99
func main() {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/UpCloudLtd/upcloud-cli/v2
1+
module github.com/UpCloudLtd/upcloud-cli/v3
22

33
go 1.20
44

internal/commands/account/account.go

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

33
import (
4-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands"
4+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands"
55
)
66

77
// BaseAccountCommand creates the base 'account' command

internal/commands/account/show.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"math"
66

7-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands"
8-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/output"
7+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands"
8+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/output"
99
)
1010

1111
// ShowCommand creates the 'account show' command

internal/commands/account/show_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55

66
"github.com/jedib0t/go-pretty/v6/text"
77

8-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands"
9-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/config"
10-
smock "github.com/UpCloudLtd/upcloud-cli/v2/internal/mock"
11-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/mockexecute"
8+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands"
9+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/config"
10+
smock "github.com/UpCloudLtd/upcloud-cli/v3/internal/mock"
11+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/mockexecute"
1212

1313
"github.com/UpCloudLtd/upcloud-go-api/v6/upcloud"
1414
"github.com/stretchr/testify/assert"

internal/commands/all/all.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
package all
22

33
import (
4-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands"
5-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/account"
6-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/database"
7-
databaseindex "github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/database/index"
8-
databaseproperties "github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/database/properties"
9-
databasesession "github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/database/session"
10-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/ipaddress"
11-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/kubernetes"
12-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/kubernetes/nodegroup"
13-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/loadbalancer"
14-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/network"
15-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/root"
16-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/router"
17-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/server"
18-
serverfirewall "github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/server/firewall"
19-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/server/networkinterface"
20-
serverstorage "github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/server/storage"
21-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/servergroup"
22-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/storage"
23-
storagebackup "github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/storage/backup"
24-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/commands/zone"
25-
"github.com/UpCloudLtd/upcloud-cli/v2/internal/config"
4+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands"
5+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/account"
6+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/database"
7+
databaseindex "github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/database/index"
8+
databaseproperties "github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/database/properties"
9+
databasesession "github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/database/session"
10+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/ipaddress"
11+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/kubernetes"
12+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/kubernetes/nodegroup"
13+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/loadbalancer"
14+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/network"
15+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/root"
16+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/router"
17+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/server"
18+
serverfirewall "github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/server/firewall"
19+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/server/networkinterface"
20+
serverstorage "github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/server/storage"
21+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/servergroup"
22+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/storage"
23+
storagebackup "github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/storage/backup"
24+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/commands/zone"
25+
"github.com/UpCloudLtd/upcloud-cli/v3/internal/config"
2626

2727
"github.com/spf13/cobra"
2828
)

0 commit comments

Comments
 (0)