Skip to content

Commit

Permalink
Include IP assigmenets when reconciling VIP ips
Browse files Browse the repository at this point in the history
on CPEM clusters.

Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
  • Loading branch information
cprivitere committed Jul 13, 2022
1 parent ac54885 commit 7429b47
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 7429b47

Please sign in to comment.