Closed trevoredshelf closed 1 month ago
Nevermind, it looks as though you just need to include an empty string in the empty array for managedPolicyArns
to work.
[""]
works but []
doesn't. Documentation just needs to be updated.
@trevoredshelf can you try 1.5.0? I could not reproduce this issue.
Is there an existing issue for this?
Affected Resource(s)
iam.aws.upbound.io/v1beta1 - Role
Resource MRs required to reproduce the bug
Steps to Reproduce
kubectl -f apply the manifest above
What happened?
In order for the
managedPolicyArns
array to work, there needs to be at least 1 policy included. If at least one policy exists in the array, Crossplane will successfully reconcile and remove any additional managed policies that get attached to the role. However, if the array is empty, reconciliation fails when managed policies are attached.Relevant Error Output Snippet
No response
Crossplane Version
1.16.0
Provider Version
1.4.0
Kubernetes Version
No response
Kubernetes Distribution
No response
Additional Info
No response