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

Prepare Collector reconciliation for TargetAllocator CRD #3065

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

swiatekm
Copy link
Contributor

@swiatekm swiatekm commented Jun 24, 2024

Description:

Refactor how the target allocator is treated by collector reconciliation.

I've converted params.TargetAllocator to a pointer, and now whenever any of the collector manifest builders want to know if a Target Allocator is enabled, they check that pointer instead of params.OtelCol.Spec.TargetAllocator.Enabled. The reason for this is that there will be more ways to assign a target allocator to a collector after the TargetAllocator CRD is introduced.

Logically, this PR doesn't change anything.

Link to tracking Issue(s): #2422

@swiatekm swiatekm added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jun 24, 2024
@swiatekm swiatekm requested a review from a team June 24, 2024 09:55
Copy link
Contributor

@jaronoff97 jaronoff97 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 :)

@swiatekm swiatekm merged commit 8de27c5 into open-telemetry:main Jun 24, 2024
33 checks passed
@swiatekm swiatekm deleted the chore/collector-ta-separate branch June 24, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants