Skip to content

Commit 9c3f62f

Browse files
dhaiducekopenshift-merge-robot
authored andcommitted
Fix namespaceSelector logic
Signed-off-by: Dale Haiducek <[email protected]>
1 parent 2dff12c commit 9c3f62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/plugin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ func (p *Plugin) applyDefaults(unmarshaledConfig map[string]interface{}) {
599599
}
600600

601601
selector := manifest.NamespaceSelector
602-
if selector.Exclude != nil || selector.Include != nil ||
603-
selector.MatchLabels != nil || selector.MatchExpressions != nil {
602+
if selector.Exclude == nil && selector.Include == nil &&
603+
selector.MatchLabels == nil && selector.MatchExpressions == nil {
604604
manifest.NamespaceSelector = policy.NamespaceSelector
605605
}
606606

0 commit comments

Comments
 (0)