Merge pull request #9924 from hakman/additional-policies-shared-roles

Only add additional policies to kops managed IAMRoles
This commit is contained in:
Kubernetes Prow Robot 2020-09-15 20:03:19 -07:00 committed by GitHub
commit 50e61d6bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ func (b *IAMModelBuilder) buildIAMTasks(role iam.Subject, iamName string, c *fi.
}
// Generate additional policies if needed, and attach to existing role
{
if !shared {
additionalPolicy := ""
if b.Cluster.Spec.AdditionalPolicies != nil {
additionalPolicies := *(b.Cluster.Spec.AdditionalPolicies)