Skip to content

Commit

Permalink
Merge pull request #1837 from carlosrodfern/main
Browse files Browse the repository at this point in the history
 fix(core): ensure only cluster policy is updated on new ns
  • Loading branch information
DelusionalOptimist authored Aug 16, 2024
2 parents 7e7b1c3 + dd1f03d commit 5c70d14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions KubeArmor/core/kubeUpdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,11 @@ func (dm *KubeArmorDaemon) WatchK8sPods() {
}

func matchClusterSecurityPolicyRule(policy tp.SecurityPolicy) bool {

if len(policy.Spec.Selector.Identities) > 0 { // if is not a Cluster policy
return false
}

hasInOperator := false
excludedNamespaces := make(map[string]bool)

Expand Down

0 comments on commit 5c70d14

Please sign in to comment.