Merge pull request #12677 from angeloskaltsikis/fix-delete-iam-instance-profile

Fix that states AWS IAM Instance Profile blocks IAM Role
This commit is contained in:
Kubernetes Prow Robot 2021-11-03 18:00:16 -07:00 committed by GitHub
commit 10cbb9bc91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2041,6 +2041,7 @@ func ListIAMInstanceProfiles(cloud fi.Cloud, clusterName string) ([]*resources.R
Deleter: DeleteIAMInstanceProfile,
Obj: profile,
}
resourceTracker.Blocks = append(resourceTracker.Blocks, "iam-role:"+name)
resourceTrackers = append(resourceTrackers, resourceTracker)
}