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

Allow roles to be annotated with with the base name or the full ARN #51

Closed
wants to merge 2 commits into from

Conversation

negz
Copy link

@negz negz commented Feb 27, 2017

I spent a long time trying to figure out why my role was not being granted despite having annotated my pods. It turns out I had annotated them with the full ARN. I've expanded the logging a little to help with similar issues in future (typos, etc) and refactored the role check slightly to allow cases where a pod is annotated with the full ARN rather than the role name alone.

Note I have not tested my changes aside from ensuring the code builds.

Nic Cope added 2 commits February 26, 2017 19:23
I spent a long time trying to figure out why my role was not being
granted despite having annotated my pods. It turns out I had annotated
them with the full ARN, and was only able to figure that out via this
debug logging.
I had assumed we should use the full ARN, which was causing the role
not to be granted.
@jtblin
Copy link
Owner

jtblin commented Mar 7, 2017

Thanks @negz ! I've merged #53 which includes your changes so will decline this one.

@jtblin jtblin closed this Mar 7, 2017
@negz
Copy link
Author

negz commented Mar 7, 2017

Thanks @jtblin and @struz!

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