Skip to content

Commit

Permalink
Adds comment on implementation details for the common provider Distri…
Browse files Browse the repository at this point in the history
…buteInstances method.
  • Loading branch information
manadart committed Nov 27, 2018
1 parent 6fffa6f commit ec541d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provider/common/availabilityzones.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ var internalAvailabilityZoneAllocations = AvailabilityZoneAllocations

// DistributeInstances is a common function for implement the
// state.InstanceDistributor policy based on availability zone spread.
// TODO (manadart 2018-11-27) This method signature has grown to the point
// where the argument list should be replaced with a struct.
// At that time limitZones could be transformed to a map so that lookups in the
// filtering below are more efficient.
func DistributeInstances(
env ZonedEnviron, ctx context.ProviderCallContext, candidates, group []instance.Id, limitZones []string,
) ([]instance.Id, error) {
Expand Down

0 comments on commit ec541d6

Please sign in to comment.