mirror of https://github.com/kubernetes/kops.git
Add permission for CreateTag on ENI to amazon-vpc-cni-k8s
Although amazon-vpc-cni-k8s adds tag to ENI, kops does not add the permission. Hence it does not work by default. This patch adds the permission for CreateTag on ENI to amazon-vpc-cni-k8s's nodes policy.
This commit is contained in:
parent
ea420dac78
commit
92689c51c6
|
@ -877,6 +877,13 @@ func addAmazonVPCCNIPermissions(p *Policy, resource stringorslice.StringOrSlice,
|
|||
}),
|
||||
Resource: resource,
|
||||
},
|
||||
&Statement{
|
||||
Effect: StatementEffectAllow,
|
||||
Action: stringorslice.Slice([]string{
|
||||
"ec2:CreateTags",
|
||||
}),
|
||||
Resource: stringorslice.Slice([]string{"arn:aws:ec2:*:*:network-interface/*"}),
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue