Skip to content

Commit

Permalink
Fix ParseEventMask to produce proper masks
Browse files Browse the repository at this point in the history
Signed-off-by: ZP-AlwaysWin <[email protected]>
  • Loading branch information
ZP-AlwaysWin committed May 18, 2023
1 parent 2a8b655 commit da291a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ func ParseEventMask(events ...string) (EventMask, error) {
continue
case "pod", "podsandbox":
for name, bit := range bits {
if strings.Contains(name, "Pod") {
if strings.Contains(name, "pod") {
mask.Set(bit)
}
}
continue
case "container":
for name, bit := range bits {
if strings.Contains(name, "Container") {
if strings.Contains(name, "container") {
mask.Set(bit)
}
}
Expand Down

0 comments on commit da291a6

Please sign in to comment.