Skip to content

Commit

Permalink
Merge pull request #9924 from hakman/additional-policies-shared-roles
Browse files Browse the repository at this point in the history
Only add additional policies to kops managed IAMRoles
  • Loading branch information
k8s-ci-robot authored Sep 16, 2020
2 parents 8ee0816 + 07be801 commit 50e61d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/model/iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50e61d6

Please sign in to comment.