Skip to content

Commit

Permalink
delete instead of tracking nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Sep 15, 2023
1 parent 21c337c commit 641b155
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/mesh/internal/controllers/xds/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ func (r *xdsReconciler) Reconcile(ctx context.Context, rt controller.Runtime, re

// Step 4: Track relationships between ProxyStateTemplates and ServiceEndpoints.
r.endpointsMapper.TrackItem(req.ID, endpointsInProxyStateTemplate)
if len(endpointsInProxyStateTemplate) == 0 {
r.endpointsMapper.UntrackItem(req.ID)
}

// Iterate through leaf certificate references.
// For each leaf certificate reference, the controller should:
Expand Down

0 comments on commit 641b155

Please sign in to comment.