mirror of https://github.com/kubernetes/kops.git
fixing panic with iam unit tests
This commit is contained in:
parent
132b428d64
commit
d71f53d4b5
|
@ -182,7 +182,7 @@ func (b *PolicyBuilder) BuildAWSPolicyMaster() (*Policy, error) {
|
|||
addECRPermissions(p)
|
||||
}
|
||||
|
||||
if b.Cluster.Spec.Networking.Romana != nil {
|
||||
if b.Cluster.Spec.Networking != nil && b.Cluster.Spec.Networking.Romana != nil {
|
||||
addRomanaCNIPermissions(p, resource, b.Cluster.Spec.IAM.Legacy)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue