mirror of https://github.com/kubernetes/kops.git
Only add additional policies to kops managed IAMRoles
This commit is contained in:
parent
69f22a4b52
commit
07be801a12
|
@ -263,7 +263,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)
|
||||
|
|
Loading…
Reference in New Issue