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

Shrink DNSMap if DNS not enabled to save memory #165

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

msherif1234
Copy link
Contributor

@msherif1234 msherif1234 commented Jul 27, 2023

shrink dnsmap to 1 entry when the feature is not enabled to optimize memory usage
image

Note: I have to move code out of FlowFetcher function because lint hit complexity limit in that function

Signed-off-by: msherif1234 <mmahmoud@redhat.com>
@msherif1234
Copy link
Contributor Author

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jul 27, 2023
@github-actions
Copy link

New image:
quay.io/netobserv/netobserv-ebpf-agent:718caf5

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=718caf5 make set-agent-image

@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #165 (7a0a235) into main (338d2b2) will decrease coverage by 0.16%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #165      +/-   ##
==========================================
- Coverage   38.82%   38.66%   -0.16%     
==========================================
  Files          31       31              
  Lines        2246     2255       +9     
==========================================
  Hits          872      872              
- Misses       1325     1334       +9     
  Partials       49       49              
Flag Coverage Δ
unittests 38.66% <0.00%> (-0.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
pkg/ebpf/tracer.go 0.00% <0.00%> (ø)

Copy link
Contributor

@jpinsonneau jpinsonneau left a comment

Choose a reason for hiding this comment

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

👍 looks good ! thanks @msherif1234

@msherif1234
Copy link
Contributor Author

/approve

@openshift-ci
Copy link

openshift-ci bot commented Jul 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: msherif1234

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 8150ccc into netobserv:main Jul 28, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test To set manually when a PR is safe to test. Triggers image build on PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants