Skip to content

Commit

Permalink
Merge pull request #354 from kubernetes-sigs/include-ip-assignments
Browse files Browse the repository at this point in the history
Include IP assigmenets when reconciling VIP ips
  • Loading branch information
cprivitere committed Jul 13, 2022
2 parents ac54885 + 7429b47 commit 9d5c0e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cloud/packet/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ func (p *Client) GetIPByClusterIdentifier(namespace, name, projectID string) (pa
var reservedIP packngo.IPAddressReservation

listOpts := &packngo.ListOptions{}
listOpts = listOpts.Including("assignments", "assignments.assigned_to")
reservedIPs, _, err := p.ProjectIPs.List(projectID, listOpts)
if err != nil {
return reservedIP, err
Expand Down

0 comments on commit 9d5c0e0

Please sign in to comment.