Skip to content

Commit

Permalink
Update pkg/cloudprovider/aws/instancetype.go
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Wagner <[email protected]>
  • Loading branch information
suket22 and bwagner5 authored Jul 21, 2022
1 parent 5becd05 commit 8eb944e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudprovider/aws/instancetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (i *InstanceType) memory() *resource.Quantity {

// Setting ephemeral-storage to be either the default value or what is defined in blockDeviceMappings
func (i *InstanceType) ephemeralStorage() *resource.Quantity {
if i.provider.BlockDeviceMappings != nil {
if len(i.provider.BlockDeviceMappings) != 0 {
if aws.StringValue(i.provider.AMIFamily) == v1alpha1.AMIFamilyCustom {
// For Custom AMIFamily, use the volume size of the last defined block device mapping.
// TODO: Consider giving better control to define which block device will be used for pods.
Expand Down

0 comments on commit 8eb944e

Please sign in to comment.