Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug where detected TCP traffic from pods short time before their deletion time could be labeled as incoming traffic from the internet #245

Merged
merged 4 commits into from
Oct 13, 2024

Conversation

omris94
Copy link
Contributor

@omris94 omris94 commented Oct 10, 2024

Description

We fixed this bug by creating a TTL cache for pod IPs with an expiry time of 10 minutes.

Testing

Describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.

Also include details of the environment this PR was developed in (language/platform/browser version).

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR and in github.com/otterize/docs

…r deletion time could be labeled as incoming traffic from the internet
src/mapper/pkg/kubefinder/kubefinder.go Outdated Show resolved Hide resolved
@omris94 omris94 merged commit b372d5d into main Oct 13, 2024
21 checks passed
@omris94 omris94 deleted the omris/add-seen-pod-ip-cache branch October 13, 2024 12:15
@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants