Skip to content

Commit 73510da

Browse files
committed
err
Signed-off-by: Avraham Shalev <[email protected]>
1 parent 4bd5e8f commit 73510da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

exceptions/exceptionprocessor.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ func (p *Processor) hasException(clusterName string, designator *armotypes.Porta
167167
return false // if designators are empty
168168
}
169169

170+
if attributes.GetCluster() != "" && !p.compareCluster(attributes.GetCluster(), clusterName) { // TODO - where do we receive cluster name from?
171+
return false // cluster name does not match
172+
}
173+
170174
if attributes.GetNamespace() != "" && !p.compareNamespace(workload, attributes.GetNamespace()) {
171175
return false // namespaces do not match
172176
}

0 commit comments

Comments
 (0)