adding missing lifecycle to route table task

This commit is contained in:
chrislovecnm 2017-10-12 11:55:37 -06:00
parent e1c2bb1cd2
commit f00ee27dbe
1 changed files with 5 additions and 3 deletions

View File

@ -18,12 +18,13 @@ package model
import (
"fmt"
"strings"
"github.com/golang/glog"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/upup/pkg/fi"
"k8s.io/kops/upup/pkg/fi/cloudup/awstasks"
"strings"
)
// NetworkModelBuilder configures network objects
@ -260,8 +261,9 @@ func (b *NetworkModelBuilder) Build(c *fi.ModelBuilderContext) error {
//
// The private route table that will route to the NAT Gateway
rt := &awstasks.RouteTable{
Name: s(b.NamePrivateRouteTableInZone(zone)),
VPC: b.LinkToVPC(),
Name: s(b.NamePrivateRouteTableInZone(zone)),
VPC: b.LinkToVPC(),
Lifecycle: b.Lifecycle,
}
c.AddTask(rt)