Skip to content

Commit 7bd25af

Browse files
[deps] Update linodego to v1.56.0 (#850)
* [deps] Update linodego to 1.56.0 - Added support for linode interfaces and vpc dual stack support * update fields for linodego changes --------- Co-authored-by: Ashley Dumaine <[email protected]>
1 parent 9f4d0a7 commit 7bd25af

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

config/crd/bases/infrastructure.cluster.x-k8s.io_linodevpcs.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ spec:
7474
Once ranges are allocated based on the IPv6Range field, they will be
7575
added to this field.
7676
items:
77-
description: VPCIPv6Range represents a single IPv6 range assigned
78-
to a VPC.
77+
description: |-
78+
VPCIPv6Range represents a single IPv6 range assigned to a VPC.
79+
NOTE: IPv6 VPCs may not currently be available to all users.
7980
properties:
8081
range:
8182
type: string
@@ -132,8 +133,9 @@ spec:
132133
Once ranges are allocated based on the IPv6Range field, they will be
133134
added to this field.
134135
items:
135-
description: VPCIPv6Range represents a single IPv6 range assigned
136-
to a VPC.
136+
description: |-
137+
VPCIPv6Range represents a single IPv6 range assigned to a VPC.
138+
NOTE: IPv6 VPCs may not currently be available to all users.
137139
properties:
138140
range:
139141
type: string

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/go-logr/logr v1.4.3
1616
github.com/google/go-cmp v0.7.0
1717
github.com/google/uuid v1.6.0
18-
github.com/linode/linodego v1.54.1-0.20250812173013-ca1c9b03408c
18+
github.com/linode/linodego v1.56.0
1919
github.com/onsi/ginkgo/v2 v2.25.1
2020
github.com/onsi/gomega v1.38.2
2121
github.com/stretchr/testify v1.11.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI
154154
github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
155155
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
156156
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
157-
github.com/jarcoal/httpmock v1.4.0 h1:BvhqnH0JAYbNudL2GMJKgOHe2CtKlzJ/5rWKyp+hc2k=
158-
github.com/jarcoal/httpmock v1.4.0/go.mod h1:ftW1xULwo+j0R0JJkJIIi7UKigZUXCLLanykgjwBXL0=
157+
github.com/jarcoal/httpmock v1.4.1 h1:0Ju+VCFuARfFlhVXFc2HxlcQkfB+Xq12/EotHko+x2A=
158+
github.com/jarcoal/httpmock v1.4.1/go.mod h1:ftW1xULwo+j0R0JJkJIIi7UKigZUXCLLanykgjwBXL0=
159159
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
160160
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
161161
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
@@ -177,8 +177,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
177177
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
178178
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
179179
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
180-
github.com/linode/linodego v1.54.1-0.20250812173013-ca1c9b03408c h1:EnDv76oCGlC3YGbmtdLJD67GGCkbKT5rQf+bJSQ5X9A=
181-
github.com/linode/linodego v1.54.1-0.20250812173013-ca1c9b03408c/go.mod h1:VHlFAbhj18634Cd7B7L5D723kFKFQMOxzIutSMcWsB4=
180+
github.com/linode/linodego v1.56.0 h1:WO2ztR6/hdfqCIeZnC8DyYb+AXnuWOl4FB/qqK6T5HE=
181+
github.com/linode/linodego v1.56.0/go.mod h1:W5+QH6nCppgi5gud/b16uAKOzTtfuwzjOHEFA7bKOd0=
182182
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
183183
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
184184
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=

internal/controller/linodemachine_controller_helpers.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ func getVPCLinodeInterfaceConfig(ctx context.Context, machineScope *scope.Machin
675675
Addresses: []linodego.VPCInterfaceIPv4AddressCreateOptions{{
676676
Primary: ptr.To(true),
677677
NAT1To1Address: ptr.To("auto"),
678-
Address: "auto",
678+
Address: ptr.To("auto"),
679679
}},
680680
},
681681
},
@@ -760,7 +760,7 @@ func getVPCLinodeInterfaceConfigFromDirectID(ctx context.Context, machineScope *
760760
Addresses: []linodego.VPCInterfaceIPv4AddressCreateOptions{{
761761
Primary: ptr.To(true),
762762
NAT1To1Address: ptr.To("auto"),
763-
Address: "auto",
763+
Address: ptr.To("auto"),
764764
}},
765765
},
766766
},
@@ -953,7 +953,7 @@ func constructLinodeInterfaceCreateOpts(createOpts []infrav1alpha2.LinodeInterfa
953953
IPv6: iface.DefaultRoute.IPv6,
954954
}
955955
}
956-
ifaceCreateOpts.FirewallID = iface.FirewallID
956+
ifaceCreateOpts.FirewallID = ptr.To(iface.FirewallID)
957957
// createOpts is now fully populated with the interface options
958958
linodeInterfaces[idx] = ifaceCreateOpts
959959
}
@@ -973,7 +973,7 @@ func constructLinodeInterfaceVPC(iface infrav1alpha2.LinodeInterfaceCreateOption
973973
if iface.VPC.IPv4 != nil {
974974
for _, addr := range iface.VPC.IPv4.Addresses {
975975
ipv4Addrs = append(ipv4Addrs, linodego.VPCInterfaceIPv4AddressCreateOptions{
976-
Address: addr.Address,
976+
Address: ptr.To(addr.Address),
977977
Primary: addr.Primary,
978978
NAT1To1Address: addr.NAT1To1Address,
979979
})
@@ -989,7 +989,7 @@ func constructLinodeInterfaceVPC(iface infrav1alpha2.LinodeInterfaceCreateOption
989989
{
990990
Primary: ptr.To(true),
991991
NAT1To1Address: ptr.To("auto"),
992-
Address: "auto", // Default to auto-assigned address
992+
Address: ptr.To("auto"), // Default to auto-assigned address
993993
},
994994
}
995995
}
@@ -1029,7 +1029,7 @@ func constructLinodeInterfacePublic(iface infrav1alpha2.LinodeInterfaceCreateOpt
10291029
if iface.Public.IPv4 != nil {
10301030
for _, addr := range iface.Public.IPv4.Addresses {
10311031
ipv4Addrs = append(ipv4Addrs, linodego.PublicInterfaceIPv4AddressCreateOptions{
1032-
Address: addr.Address,
1032+
Address: ptr.To(addr.Address),
10331033
Primary: addr.Primary,
10341034
})
10351035
}
@@ -1518,7 +1518,7 @@ func configureFirewall(ctx context.Context, machineScope *scope.MachineScope, cr
15181518

15191519
// If using LinodeInterfaces that needs to know about the firewall ID
15201520
for i := range createConfig.LinodeInterfaces {
1521-
createConfig.LinodeInterfaces[i].FirewallID = ptr.To(fwID)
1521+
createConfig.LinodeInterfaces[i].FirewallID = ptr.To(ptr.To(fwID))
15221522
}
15231523

15241524
return nil

internal/controller/linodemachine_controller_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@ var _ = Describe("machine in VPC with new network interfaces", Label("machine",
27462746
Addresses: []linodego.VPCInterfaceIPv4AddressCreateOptions{{
27472747
NAT1To1Address: ptr.To("auto"),
27482748
Primary: ptr.To(true),
2749-
Address: "auto",
2749+
Address: ptr.To("auto"),
27502750
}},
27512751
},
27522752
},
@@ -2813,7 +2813,7 @@ var _ = Describe("machine in VPC with new network interfaces", Label("machine",
28132813
Addresses: []linodego.VPCInterfaceIPv4AddressCreateOptions{{
28142814
NAT1To1Address: ptr.To("auto"),
28152815
Primary: ptr.To(true),
2816-
Address: "auto",
2816+
Address: ptr.To("auto"),
28172817
}},
28182818
},
28192819
},
@@ -2886,7 +2886,7 @@ var _ = Describe("machine in VPC with new network interfaces", Label("machine",
28862886
Addresses: []linodego.VPCInterfaceIPv4AddressCreateOptions{{
28872887
NAT1To1Address: ptr.To("auto"),
28882888
Primary: ptr.To(true),
2889-
Address: "auto",
2889+
Address: ptr.To("auto"),
28902890
}},
28912891
},
28922892
},

0 commit comments

Comments
 (0)