Skip to content

Commit

Permalink
fix: do not error on capacity-block capacity-type (#4991)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 authored Oct 31, 2023
1 parent 3ab813b commit a3abf7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/providers/instancetype/instancetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ func (p *Provider) createOfferings(ctx context.Context, instanceType *ec2.Instan
price, ok = p.pricingProvider.SpotPrice(*instanceType.InstanceType, az)
case ec2.UsageClassTypeOnDemand:
price, ok = p.pricingProvider.OnDemandPrice(*instanceType.InstanceType)
case "capacity-block":
// ignore since karpenter doesn't support it yet, but do not log an unknown capacity type error
continue
default:
logging.FromContext(ctx).Errorf("Received unknown capacity type %s for instance type %s", capacityType, *instanceType.InstanceType)
continue
Expand Down

0 comments on commit a3abf7f

Please sign in to comment.