Skip to content

Commit

Permalink
Merge pull request #2188 from loft-sh/backport/v0.20/pr-2187
Browse files Browse the repository at this point in the history
[v0.20] Merge pull request #2187 from FabianKramm/refactor-ingress-auth
  • Loading branch information
FabianKramm authored Sep 30, 2024
2 parents fc5b586 + 150ccee commit 5800589
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controllers/generic/export_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ func (f *exporter) ExcludePhysical(_ client.Object) bool {
}

func (f *exporter) excludeObject(obj client.Object) bool {
if f.selector == nil {
return false
}

matches := f.selector.Matches(labels.Set(obj.GetLabels()))
return !matches
}

0 comments on commit 5800589

Please sign in to comment.