Skip to content

Conversation

@dpiddockcmp
Copy link
Contributor

PR o'clock

Description

This logic is broken. Looks like there's a Terraform bug related to not handling complex Object types. hashicorp/terraform#23562

Revert to the previous state instead of wiping out roles from aws-auth ConfigMaps.

See #606 (comment)

Another solution needs to be found for @shanmugakarna 's use case.

Checklist

@TBeijen TBeijen mentioned this pull request Dec 6, 2019
3 tasks
@shanxops
Copy link
Contributor

shanxops commented Dec 6, 2019

@dpiddockcmp Looks like both my previous PRs messed up bigtime. Sorry

Another solution needs to be found for @shanmugakarna 's use case.

Does the below solution looks acceptable ?

%{if length(var.map_roles) != 0}${yamlencode(var.map_roles)}%{endif}

Ref:
#606
#611

@dpiddockcmp
Copy link
Contributor Author

Yes, looks like length() works correctly with lists of complex objects 😄

@shanxops
Copy link
Contributor

shanxops commented Dec 8, 2019

Thanks @dpiddockcmp . Create a new PR with length comparision
#619

@max-rocket-internet
Copy link
Contributor

OK I've merged the other PR with fix. So I think we can close this one. Right?

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants