Skip to content

feat: implement custom processor actions for all facets that involve calculating the length of a pcommon.Slice #88

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

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

obs-gh-enricogiorio
Copy link
Collaborator

OTTL's Len() doesn't work well with some of the slices obtained by unmarshalling k8s events into their respective API entities. This is because Len() doesn't support the type of the inner elements of most of the slices we have to use.
As a result, the only way to "calculate" such lengths is via custom code in our events' processor.

},
// {
// name: "noObserveTransformAttributes",
// inLogs: createResourceLogs(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess these are not intentional?

Defined as the number of entries in event.data + number of entries in
event.binaryData
Add secrets and imagePullSecrets (whose values are the count of the
respective fields in the ServiceAccount entity).

These cannot be computed in helm due to the Len() function basically not
working properly.

Fix typos in comments and comment headers' placement
@obs-gh-enricogiorio obs-gh-enricogiorio merged commit 402d169 into main Sep 6, 2024
8 checks passed
@obs-gh-enricogiorio obs-gh-enricogiorio deleted the enrico/replaceLenHelm branch September 6, 2024 16:16
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.

2 participants