update attached role policies

This commit is contained in:
kkb0318
2024-07-05 19:36:34 +09:00
parent fff9016a06
commit 4612d40ea9
4 changed files with 69 additions and 39 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ func (r *IRSAReconciler) reconcile(ctx context.Context, obj *irsav1alpha1.IRSA,
Policies: obj.Spec.IamPolicies,
AccountId: accountId,
}
err = r.AwsClient.IamClient().CreateIRSARole(
err = r.AwsClient.IamClient().UpdateIRSARole(
ctx,
issuerMeta,
roleManager,