Skip to content

Commit

Permalink
fix(core): Fix bug while checking owner
Browse files Browse the repository at this point in the history
Signed-off-by: Anurag Rajawat <[email protected]>
  • Loading branch information
anurag-rajawat committed Feb 20, 2024
1 parent 4cc97b1 commit 5ef851b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ func ownerExists(c client.Client, controllee client.Object) bool {
var objToGet client.Object

switch controllee.(type) {
case *v1.SecurityIntentBinding:
case *v1.NimbusPolicy:
objToGet = &v1.SecurityIntentBinding{}
case *v1.ClusterSecurityIntentBinding:
case *v1.ClusterNimbusPolicy:
objToGet = &v1.ClusterSecurityIntentBinding{}
}

Expand Down

0 comments on commit 5ef851b

Please sign in to comment.