mirror of https://github.com/kubernetes/kops.git
Make Egress test a prefix test
Should be equivalent, but a little more correct.
This commit is contained in:
parent
842b42dc7b
commit
785cc81b94
|
|
@ -228,7 +228,7 @@ func (b *NetworkModelBuilder) Build(c *fi.ModelBuilderContext) error {
|
|||
|
||||
var ngw *awstasks.NatGateway
|
||||
if b.Cluster.Spec.Subnets[i].Egress != "" {
|
||||
if strings.Contains(b.Cluster.Spec.Subnets[i].Egress, "nat-") {
|
||||
if strings.HasPrefix(b.Cluster.Spec.Subnets[i].Egress, "nat-") {
|
||||
|
||||
ngw = &awstasks.NatGateway{
|
||||
Name: s(zone + "." + b.ClusterName()),
|
||||
|
|
|
|||
Loading…
Reference in New Issue