Skip to content

Commit f8b4472

Browse files
committed
Remove v1 filtering
1 parent fec3caa commit f8b4472

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

cloud/linode/loadbalancers.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -450,13 +450,6 @@ func (l *loadbalancers) getNodeBalancerByHostname(ctx context.Context, service *
450450
}
451451

452452
func (l *loadbalancers) getNodeBalancerByIPv4(ctx context.Context, service *v1.Service, ipv4 string) (*linodego.NodeBalancer, error) {
453-
// TODO: use this constructor once we merge in linodego v1 update
454-
// f := &linodego.Filter{}
455-
// f.AddField(linodego.Eq, "ipv4", ipv4)
456-
// filter, err := f.MarshalJSON()
457-
// if err != nil {
458-
// return nil, err
459-
// }
460453
filter := fmt.Sprintf(`{"ipv4": "%v"}`, ipv4)
461454
lbs, err := l.client.ListNodeBalancers(ctx, &linodego.ListOptions{Filter: filter})
462455
if err != nil {

0 commit comments

Comments
 (0)