Skip to content

Comments

ec2: Add dry run error handling for fleet creation#114

Open
nik-localstack wants to merge 1 commit intolocalstack:localstackfrom
nik-localstack:nikos/unc-265
Open

ec2: Add dry run error handling for fleet creation#114
nik-localstack wants to merge 1 commit intolocalstack:localstackfrom
nik-localstack:nikos/unc-265

Conversation

@nik-localstack
Copy link

Motivation

Karpenter calls create_fleet operation with DryRun=true
Current moto implementation still tries to create these ec2 instances, which leads to unexpected behavior

Changes

Add proper response and return early when dry run is used in fleet creation

Copy link
Member

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants