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

Add v1alpha2 embedded Target Allocator struct #2623

Conversation

swiatekm
Copy link
Contributor

Add and use the embedded Target Allocator struct for v1alpha2. The changes mostly involve label selectors for Prometheus CR.

Worth noting that this involves a change in semantics for said selectors, as an empty selector now selects nothing, which is in line with the standard, but different from v1alpha1.

Add and use the embedded Target Allocator struct for v1alpha2. The
changes mostly involve label selectors for Prometheus CR.

Worth noting that this involves a change in semantics for said
selectors, as an empty selector now selects nothing, which is in line
with the standard, but different from v1alpha1.
@swiatekm swiatekm added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Feb 13, 2024
@@ -31,5 +31,5 @@ const (
TargetAllocatorAllocationStrategyConsistentHashing TargetAllocatorAllocationStrategy = "consistent-hashing"

// TargetAllocatorFilterStrategyRelabelConfig targets will be consistently drops targets based on the relabel_config.
TargetAllocatorFilterStrategyRelabelConfig TargetAllocatorFilterStrategy = "consistent-hashing"
TargetAllocatorFilterStrategyRelabelConfig TargetAllocatorFilterStrategy = "relabel-config"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a small bug fix, the value was simply wrong.

@swiatekm swiatekm marked this pull request as ready for review February 13, 2024 17:20
@swiatekm swiatekm requested a review from a team February 13, 2024 17:20
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.

one question, otherwise looking good!

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.

The semantics change is fine to me IMO, when we actually start using this in #2565 we should include this in a changelog maybe.

@jaronoff97 jaronoff97 merged commit c79f185 into open-telemetry:main Feb 13, 2024
29 of 30 checks passed
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
Add and use the embedded Target Allocator struct for v1alpha2. The
changes mostly involve label selectors for Prometheus CR.

Worth noting that this involves a change in semantics for said
selectors, as an empty selector now selects nothing, which is in line
with the standard, but different from v1alpha1.
@swiatekm swiatekm deleted the feat/v1alpha2-embedded-targetallocator branch November 30, 2024 18:40
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.

None yet

2 participants