Skip to content

Conversation

@username72764274
Copy link

Description

This should fix issues similar to #4329, where an ebs volume could not be created, due to missing aws-cn references.

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

We replaced occurrences of hardcoded `arn:aws` strings with
calls of `addARNPartitionPrefix()`.
Copy link
Contributor

@cPu1 cPu1 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Can you add a unit test for this change in pkg/cfn/builder/iam_test.go?

@username72764274
Copy link
Author

I could try. However, after a first glance at the tests in pkg/cfn/builder/iam_test.go I think it will take me some time to figure out, how to add a proper unit-test there. So I guess it would make more sense, if someone adds a test who is more familiar with the test setup.

@jonathan-strzalka-saggs

+1

@Skarlso Skarlso self-requested a review December 16, 2021 20:48
@Skarlso
Copy link
Contributor

Skarlso commented Dec 17, 2021

This PR has been fixed by #4547. Thank you for your contribution, sorry, I didn't realise that this was also working on that part.

@Skarlso Skarlso closed this Dec 17, 2021
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.

4 participants