Skip to content

Commit 39d60cd

Browse files
Backport of NET-7025 - ci: test-integrations failures in compatibility tests. panics occuring in selectionTracker.TrackIDForSelection into release/1.17.x (#20230)
* backport of commit 2b3b309 * backport of commit 1740fe7 --------- Co-authored-by: John Murret <[email protected]>
1 parent cd8f8bf commit 39d60cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/resource/mappers/selectiontracker/selection_tracker.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ func (t *WorkloadSelectionTracker) GetIDsForWorkload(id *pbresource.ID) []*pbres
7272
// TrackIDForSelector will associate workloads matching the specified workload
7373
// selector with the given resource id.
7474
func (t *WorkloadSelectionTracker) TrackIDForSelector(id *pbresource.ID, selector *pbcatalog.WorkloadSelector) {
75+
if selector == nil {
76+
return
77+
}
78+
7579
t.lock.Lock()
7680
defer t.lock.Unlock()
7781

0 commit comments

Comments
 (0)