Skip to content

Commit

Permalink
Fix route table association deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
hebelsan committed Oct 24, 2024
1 parent 15e59e3 commit 5817d74
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/controller/infrastructure/infraflow/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -1347,12 +1347,9 @@ func (c *FlowContext) deleteZoneRoutingTableAssociation(ctx context.Context, zon
zoneRouteTable bool, subnetKey, assocKey string) error {
child := c.getSubnetZoneChild(zoneName)
subnetID := child.Get(subnetKey)
if subnetID == nil {
return fmt.Errorf("missing subnet id")
}

assocID := child.Get(assocKey)
if assocID == nil {

if assocID == nil && subnetID != nil {
// unclear situation: load route table to search for association
var routeTableID *string
if zoneRouteTable {
Expand Down

0 comments on commit 5817d74

Please sign in to comment.