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: don't share same pointer for new reports #978

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

fjogeleit
Copy link
Member

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area outputs

What this PR does / why we need it:

currently when a new PolicyReport is created it reuses the modified default PolicyReport and reuses already added results which leads to duplicates in different namespaces.

this change creates new pointers for each new PolicyReport

Which issue(s) this PR fixes:

Fixes #970

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
@poiana poiana requested review from Issif and leogr August 27, 2024 07:57
@fjogeleit fjogeleit removed the request for review from leogr August 27, 2024 07:57
@poiana poiana added the size/M label Aug 27, 2024
@Issif Issif added this to the 2.30 milestone Aug 27, 2024
@poiana
Copy link

poiana commented Aug 27, 2024

LGTM label has been added.

Git tree hash: c3c3a93d03539482eef01eb0263cb92859a35560

@poiana
Copy link

poiana commented Aug 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fjogeleit, Issif

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

@poiana poiana merged commit 41e280e into falcosecurity:master Aug 27, 2024
5 checks passed
@fjogeleit fjogeleit deleted the fix-result-sharing branch August 27, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

PolicyReportResults in wrong PolicyReport
3 participants