Skip to content

policyfilter: only deal with running containers#968

Merged
kkourt merged 1 commit into
mainfrom
pr/kkourt/policyfilter-running
May 3, 2023
Merged

policyfilter: only deal with running containers#968
kkourt merged 1 commit into
mainfrom
pr/kkourt/policyfilter-running

Conversation

@kkourt

@kkourt kkourt commented May 3, 2023

Copy link
Copy Markdown
Contributor

As things stand now, we pass all containers to the policyfilter code. As a result, we get log warnings for containers that are not running because we are unable to find their cgroup ids.

This patch fixes this issue by only dealing with containers that have a running status.

As things stand now, we pass all containers to the policyfilter code. As
a result, we get log warnings for containers that are not running because we
are unable to find their cgroup ids.

This patch fixes this issue by only dealing with containers that have a
running status.

Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
@kkourt
kkourt requested a review from a team as a code owner May 3, 2023 14:31
@kkourt
kkourt requested a review from tixxdz May 3, 2023 14:31

@tpapagian tpapagian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kkourt
kkourt merged commit e68e054 into main May 3, 2023
@kkourt
kkourt deleted the pr/kkourt/policyfilter-running branch May 3, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants