Skip to content

Commit

Permalink
add log for filtered instance types due to limits (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 authored Jul 8, 2022
1 parent 51f865b commit 007c192
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controllers/provisioning/scheduling/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ func (s *Scheduler) add(ctx context.Context, pod *v1.Pod) error {
if len(instanceTypes) == 0 {
errs = multierr.Append(errs, fmt.Errorf("all available instance types exceed provisioner limits"))
continue
} else if len(s.instanceTypes[nodeTemplate.ProvisionerName]) != len(instanceTypes) {
logging.FromContext(ctx).Debugf("%d out of %d instance types were excluded because they would breach provisioner limits",
len(s.instanceTypes[nodeTemplate.ProvisionerName])-len(instanceTypes), len(s.instanceTypes[nodeTemplate.ProvisionerName]))
}
}

Expand Down

0 comments on commit 007c192

Please sign in to comment.