Skip to content

Commit

Permalink
driver: add note about the limit
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Sep 5, 2018
1 parent 4753cab commit 445ec7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,9 @@ func (d *Driver) checkLimit(ctx context.Context) error {
return nil // hail to the king!
}

// NOTE(arslan): the API returns the limit for *all* regions, so passing
// the region down as a parameter doesn't change the response.
// Nevertheless, this is something we should be aware of.
volumes, _, err := d.doClient.Storage.ListVolumes(ctx, &godo.ListVolumeParams{
Region: d.region,
})
Expand Down

0 comments on commit 445ec7a

Please sign in to comment.