Skip to content

Conversation

@abel-von
Copy link
Contributor

@abel-von abel-von commented Jan 3, 2024

Currently the podsandbox controller has to get event monitor from CRI plugin, that makes the podsandbox controller dependent on the CRI plugin, this PR decouples it by create a event monitor for podsandbox controller independently.

@k8s-ci-robot
Copy link

Hi @abel-von. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@abel-von abel-von closed this Jan 3, 2024
@abel-von abel-von changed the title 三带玻纤: sandbox: add event monitor for podsandbox controller Jan 3, 2024
@abel-von abel-von changed the title sandbox: add event monitor for podsandbox controller sandbox: add event monitor for podsandbox controller Jan 3, 2024
@abel-von abel-von reopened this Jan 3, 2024
@abel-von abel-von force-pushed the sandbox-plugin-0103 branch from 7dad049 to 5584f2d Compare January 3, 2024 08:27
@abel-von
Copy link
Contributor Author

abel-von commented Jan 3, 2024

needs to rebase after #9463 is merged

@abel-von
Copy link
Contributor Author

/cc @mxpv @fuweid

@k8s-ci-robot k8s-ci-robot requested review from fuweid and mxpv February 21, 2024 03:17
@abel-von
Copy link
Contributor Author

needs-rebase after #9617 is merged

@abel-von
Copy link
Contributor Author

As #9617 is merged, this PR is rebased now, could you please take a look at it again? @fuweid @mxpv

@fuweid
Copy link
Member

fuweid commented Feb 29, 2024

Will take a look in two days. Thanks!

Signed-off-by: Abel Feng <fshb1988@gmail.com>
@mxpv
Copy link
Member

mxpv commented Mar 5, 2024

/ok-to-test

Copy link
Member

@mxpv mxpv left a comment

Choose a reason for hiding this comment

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

Nice refactoring!
LGTM.

@mxpv
Copy link
Member

mxpv commented Mar 5, 2024

@fuweid PTAL

c.eventMonitor.subscribe(c.client)
// note: filters are any match, if you want any match but not in namespace foo
// then you have to manually filter namespace foo
c.eventMonitor.Subscribe(c.client, []string{`topic=="/tasks/oom"`, `topic~="/images/"`})
Copy link
Member

Choose a reason for hiding this comment

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

no idea why not just get events from k8s.io namespace.
if there is no regression issue, I would like add namespace filter in here (follow-up)

Copy link
Member

@mikebrow mikebrow Apr 17, 2025

Choose a reason for hiding this comment

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

@fuweid was annoyed by hundreds (ok thousands) of these filling my screen:

DEBU[2025-04-17T20:33:22.454388241Z] Received containerd event timestamp - 2025-04-17 20:33:22.45412799 +0000 UTC, namespace - "moby", topic - "/tasks/exit" 
DEBU[2025-04-17T20:33:22.454512450Z] Ignoring events in namespace - "moby"  

did the blame found this PR :-) definitely can't fathom why we subs for all namespaces... :-)

Copy link
Member

Choose a reason for hiding this comment

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

I think so. ley me file pull request to fix it

@fuweid
Copy link
Member

fuweid commented Mar 5, 2024

/retest

@fuweid fuweid added this pull request to the merge queue Mar 5, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 5, 2024
@fuweid fuweid added this pull request to the merge queue Mar 5, 2024
Merged via the queue into containerd:main with commit de6a094 Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants