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: fix resource id path handling in IAM #2699

Merged
merged 3 commits into from
Feb 6, 2020
Merged

eks: fix resource id path handling in IAM #2699

merged 3 commits into from
Feb 6, 2020

Conversation

bonifaido
Copy link
Member

@bonifaido bonifaido commented Feb 5, 2020

Signed-off-by: Nandor Kracser bonifaido@gmail.com

Q A
Bug fix? no
New feature? no
API breaks? no
Deprecations? no
License Apache 2.0

What's in this PR?

The EKS code couldn't handle IAM resources defined by full path, this PR fixes that.

Why?

To handle resources under paths (other than "/").

Additional context

Also this fixes packageCFError formatting.

Splitting is possible in CF as well and also selection from an array, but selecting the last element from and array/list is not possible easily, so the extraction is done in the surrounding Go code.

Checklist

  • Implementation tested (with at least one cloud provider)
  • Error handling code meets the guideline

@bonifaido bonifaido changed the title eks: fix packageCFError format eks: fix resource id path handling in IAM Feb 5, 2020
@bonifaido bonifaido self-assigned this Feb 5, 2020
@bonifaido bonifaido added the distribution/eks Amazon EKS label Feb 5, 2020
@bonifaido bonifaido marked this pull request as ready for review February 5, 2020 13:03
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
@bonifaido bonifaido changed the title eks: fix resource id path handling in IAM WIP: eks: fix resource id path handling in IAM Feb 5, 2020
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
@bonifaido bonifaido changed the title WIP: eks: fix resource id path handling in IAM eks: fix resource id path handling in IAM Feb 5, 2020
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
@kozmagabor kozmagabor self-requested a review February 5, 2020 17:37
Copy link
Member

@sagikazarmark sagikazarmark left a comment

Choose a reason for hiding this comment

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

Tests! 😮 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants