Skip to content

Commit 715851c

Browse files
committed
fix final custom AMI e2e test
Signed-off-by: Pankaj Walke <[email protected]>
1 parent b9e5cc0 commit 715851c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pkg/cloud/converters/eks.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,10 @@ func AMITypeToSDK(amiType expinfrav1.ManagedMachineAMIType) ekstypes.AMITypes {
228228
return ekstypes.AMITypesAl2Arm64
229229
case expinfrav1.Al2023Arm64:
230230
return ekstypes.AMITypesAl2023Arm64Standard
231-
default:
231+
case expinfrav1.Al2023x86_64:
232232
return ekstypes.AMITypesAl2023X8664Standard
233+
default:
234+
return ekstypes.AMITypesCustom
233235
}
234236
}
235237

test/e2e/shared/aws.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ func NewAWSSessionV2() *awsv2.Config {
442442
Expect(err).NotTo(HaveOccurred())
443443
optFns := []func(*config.LoadOptions) error{
444444
config.WithRegion(region),
445-
config.WithClientLogMode(awsv2.LogRequest),
446445
}
447446
cfg, err := config.LoadDefaultConfig(context.Background(), optFns...)
448447
Expect(err).NotTo(HaveOccurred())
@@ -458,7 +457,6 @@ func NewAWSSessionRepoWithKeyV2(accessKey *iamtypes.AccessKey) *awsv2.Config {
458457
staticCredProvider := awscredsv2.NewStaticCredentialsProvider(awsv2.ToString(accessKey.AccessKeyId), awsv2.ToString(accessKey.SecretAccessKey), "")
459458
optFns := []func(*config.LoadOptions) error{
460459
config.WithRegion(region),
461-
config.WithClientLogMode(awsv2.LogRequest),
462460
config.WithCredentialsProvider(staticCredProvider),
463461
}
464462
cfg, err := config.LoadDefaultConfig(context.Background(), optFns...)
@@ -475,7 +473,6 @@ func NewAWSSessionWithKeyV2(accessKey *iamtypes.AccessKey) *awsv2.Config {
475473
staticCredProvider := awscredsv2.NewStaticCredentialsProvider(awsv2.ToString(accessKey.AccessKeyId), awsv2.ToString(accessKey.SecretAccessKey), "")
476474
optFns := []func(*config.LoadOptions) error{
477475
config.WithRegion(region),
478-
config.WithClientLogMode(awsv2.LogRequest),
479476
config.WithCredentialsProvider(staticCredProvider),
480477
}
481478
cfg, err := config.LoadDefaultConfig(context.Background(), optFns...)

0 commit comments

Comments
 (0)