Skip to content

Commit

Permalink
Merge pull request #3242 from KashifSaadat/awstasks-lifecycle-property
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Set lifecycle on ElasticIP and NAT Gateway tasks to avoid spurious changes

Identified in issue #476
Extension of fixes within PR #3226
  • Loading branch information
Kubernetes Submit Queue authored Aug 21, 2017
2 parents d952db7 + b79f310 commit 19d34b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions upup/pkg/fi/cloudup/awstasks/elastic_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ func (e *ElasticIP) find(cloud awsup.AWSCloud) (*ElasticIP, error) {

e.ID = actual.ID

// Avoid spurious changes
actual.Lifecycle = e.Lifecycle

return actual, nil
}
return nil, nil
Expand Down
1 change: 1 addition & 0 deletions upup/pkg/fi/cloudup/awstasks/natgateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func (e *NatGateway) Find(c *fi.Context) (*NatGateway, error) {

// NATGateways don't have a Name (no tags), so we set the name to avoid spurious changes
actual.Name = e.Name
actual.Lifecycle = e.Lifecycle

actual.AssociatedRouteTable = e.AssociatedRouteTable

Expand Down

0 comments on commit 19d34b8

Please sign in to comment.