Skip to content

Commit

Permalink
Merge pull request #11285 from olemarkus/warm-fix-errors
Browse files Browse the repository at this point in the history
Make warm pool no ASG found error retryable
  • Loading branch information
k8s-ci-robot authored Apr 23, 2021
2 parents cc16b52 + b3f52ee commit c3727bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions upup/pkg/fi/cloudup/awstasks/warmpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func (e *WarmPool) Find(c *fi.Context) (*WarmPool, error) {
AutoScalingGroupName: e.Name,
})
if err != nil {
if awsup.AWSErrorCode(err) == "ValidationError" {
return nil, nil
}
return nil, err
}
if warmPool.WarmPoolConfiguration == nil {
Expand Down Expand Up @@ -96,6 +99,9 @@ func (*WarmPool) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *WarmPool) error

_, err := svc.PutWarmPool(request)
if err != nil {
if awsup.AWSErrorCode(err) == "ValidationError" {
return fi.NewTryAgainLaterError("waiting for ASG to become ready")
}
return fmt.Errorf("error modifying warm pool: %w", err)
}
} else {
Expand Down

0 comments on commit c3727bf

Please sign in to comment.