Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eks-resource: process paginated results from list-stacks #873

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

etungsten
Copy link
Contributor

@etungsten etungsten commented Sep 15, 2023

Issue number:
N/A

Description of changes:

CloudFormation ListStacks might return paginated results. Go through all results before erroring on missing stack.

Testing done:
I have 150 cloudformation stacks and the cluster resource agent succesfully completes whereas it couldn't because of the pagination issue.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Cfn ListStacks might return paginated results. Go through all results
before erroring on missing stack.
@etungsten etungsten marked this pull request as ready for review September 15, 2023 03:32
@ecpullen ecpullen self-requested a review September 18, 2023 16:35
Comment on lines +498 to +501
return Err(ProviderError::new_with_context(
Resources::Remaining,
"Could not find nodegroup cloudformation stack for cluster",
));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return Err(ProviderError::new_with_context(
Resources::Remaining,
"Could not find nodegroup cloudformation stack for cluster",
));
return Err(ProviderError::new_with_context(
Resources::Remaining,
format!("Could not find nodegroup cloudformation stack '{}'
for cluster '{}'", stack.name(), cluster_name),
));

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll fix this in a follow up after I'm back

@etungsten etungsten merged commit b979394 into bottlerocket-os:develop Sep 28, 2023
3 checks passed
@etungsten etungsten deleted the pagination-pls branch September 28, 2023 20:50
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.

3 participants