Skip to content

Commit

Permalink
Merge pull request #2187 from FabianKramm/refactor-ingress-auth
Browse files Browse the repository at this point in the history
fix: check for selector be nil
  • Loading branch information
FabianKramm authored Sep 30, 2024
2 parents 03dc781 + 482118a commit 3b1a143
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 @@ -319,6 +319,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 3b1a143

Please sign in to comment.