@@ -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
0 commit comments