You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix bug in updating user.spec.inlinePolicies (#83)
Issue aws-controllers-k8s/community#1906
The bug occurs when updating an existing item in `spec.inlinePolicies`.
The code incorrectly includes both the old(to remove) and new(to
add)values when using `lo.Difference`. This causes the code to first
attempt to replace the xisting policies with a call to
`iam::PutUserPolicy` and then mistakenly "delete" them right after.
This patch fixes this bug by calling `lo.Find` to double check whether
we need to keep an inline policy (if it only needs to be updated)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
0 commit comments