IAM Controller 1.3.8 reconciler reports duplicate IAM policies #2103
Labels
kind/bug
Categorizes issue or PR as related to a bug.
service/iam
Indicates issues or PRs that are related to iam-controller.
Describe the bug
When I create an IAM policy it gets created in AWS console and the policy object get created on the cluster but reports duplicate names when none exist. This also prevents the creation of the role.
Steps to reproduce
I created a helm chart which creates an IAM Policy and Role.
When I deployed the chart the status shows
I check the AWS console and it created the IAM policy but the reconciler was trying to create it again which it why it reports a duplicate.
I checked previous IAM policies and they were getting this message now.
So in ArgoCD I disable auto sync, then removed the policy from the IAM console, and I removed the policy object from the cluster. I did a sync again and I got the same results.
I rolled back to version 1.3.4 and my IAM policy and role was able to be created.
Expected outcome
IAM policy should be created and reconciler should stop trying to create it again which triggers the duplicate error.
Environment
The text was updated successfully, but these errors were encountered: