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: add config data to kubernetes events for post processing #1091

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

yashmehrotra
Copy link
Member

No description provided.

@moshloop moshloop merged commit 0753994 into main Oct 18, 2024
8 checks passed
@moshloop moshloop deleted the event-conf-fix branch October 18, 2024 07:25
@@ -241,6 +252,7 @@ func ExtractResults(ctx *KubernetesContext, objs []*unstructured.Unstructured) v
changeResults = append(changeResults, v1.ScrapeResult{
BaseScraper: ctx.config.BaseScraper,
Changes: []v1.ChangeResult{*change},
Config: configData,
Copy link
Member

Choose a reason for hiding this comment

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

@yashmehrotra why did we add config to changes? we have a config == nil check to distinguish between results that carry config item vs results with only changes.

seeing a lot of errors during extractAttributes because all changes results have an empty ID.

Copy link
Member Author

Choose a reason for hiding this comment

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

@adityathebe We have change transformations and exclusions which depend on config being there in cel env

Can you create an issue for the error and assign it to me ? I'll add a check to handle those

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants