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

Clone embedded metrics variable to avoid continuous appending. #4112

Merged
merged 1 commit into from
Mar 1, 2025

Conversation

dsessler7
Copy link
Contributor

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • New feature
  • Bug fix
  • Documentation
  • Testing enhancement
  • Other

What is the current behavior (link to any open issues here)?

Operator always appends to the same global variable, the contents of which are put in a ConfigMap which triggers a reconcile, which forces another appending, etc, etc, until the ConfigMap gets too large.

What is the new behavior (if this is a feature change)?

  • Breaking change (fix or feature that would cause existing functionality to change)

The metrics variable in question is cloned so that we no longer continually append to it. ConfigMap doesn't get overloaded.

Other Information:

Copy link
Contributor

@benjaminjb benjaminjb left a comment

Choose a reason for hiding this comment

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

Nice catch!

@cbandy cbandy merged commit d04885c into CrunchyData:main Mar 1, 2025
19 checks passed
@dsessler7 dsessler7 deleted the otel-reduce-configmap-size branch March 3, 2025 17:56
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