Skip to content

Commit

Permalink
refactor(lbaaas): remove deprecated DNSName and NetworkUUID field
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta committed Feb 29, 2024
1 parent 7be04bb commit 5b6c6f6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/)

## [Unreleased]

### Removed
- **Breaking**, Managed Load Balancer: remove deprecated `DNSName` and `NetworkUUID` fields.

## [7.0.0]

### Added
Expand Down
2 changes: 0 additions & 2 deletions upcloud/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ type LoadBalancer struct {
Name string `json:"name,omitempty"`
Zone string `json:"zone,omitempty"`
Plan string `json:"plan,omitempty"`
NetworkUUID string `json:"network_uuid,omitempty"` // deprecated
Networks []LoadBalancerNetwork `json:"networks,omitempty"`
DNSName string `json:"dns_name,omitempty"` // deprecated
Labels []Label `json:"labels,omitempty"`
ConfiguredStatus LoadBalancerConfiguredStatus `json:"configured_status,omitempty"`
OperationalState LoadBalancerOperationalState `json:"operational_state,omitempty"`
Expand Down
3 changes: 0 additions & 3 deletions upcloud/load_balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ func TestMarshalLoadBalancer(t *testing.T) {
[
{
"name": "example-service",
"network_uuid": "03631160-d57a-4926-ad48-a2f828229dcb",
"operational_state": "running",
"plan": "development",
"configured_status": "started",
Expand Down Expand Up @@ -145,8 +144,6 @@ func TestMarshalLoadBalancer(t *testing.T) {
Name: "example-service",
Zone: "fi-hel1",
Plan: "development",
NetworkUUID: "03631160-d57a-4926-ad48-a2f828229dcb",
DNSName: "lb-0aff6dac143c43009b33ee2756f6592d.upcloudlb.com",
ConfiguredStatus: LoadBalancerConfiguredStatusStarted,
OperationalState: LoadBalancerOperationalStateRunning,
CreatedAt: timeParse("2021-12-07T13:58:30.817272Z"),
Expand Down
1 change: 0 additions & 1 deletion upcloud/request/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ type CreateLoadBalancerRequest struct {
Name string `json:"name,omitempty"`
Plan string `json:"plan,omitempty"`
Zone string `json:"zone,omitempty"`
NetworkUUID string `json:"network_uuid,omitempty"`
Networks []LoadBalancerNetwork `json:"networks,omitempty"`
ConfiguredStatus upcloud.LoadBalancerConfiguredStatus `json:"configured_status,omitempty"`
Frontends []LoadBalancerFrontend `json:"frontends"`
Expand Down
2 changes: 0 additions & 2 deletions upcloud/request/load_balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func TestCreateLoadBalancerRequest(t *testing.T) {
"name": "example-service",
"plan": "development",
"zone": "fi-hel1",
"network_uuid": "03631160-d57a-4926-ad48-a2f828229dcb",
"configured_status": "started",
"frontends": [
{
Expand Down Expand Up @@ -1392,7 +1391,6 @@ func TestCreateLoadBalancerLabelsRequest(t *testing.T) {
"name": "example-service",
"plan": "development",
"zone": "fi-hel1",
"network_uuid": "03631160-d57a-4926-ad48-a2f828229dcb",
"configured_status": "started",
"frontends": [],
"backends": [],
Expand Down

0 comments on commit 5b6c6f6

Please sign in to comment.