Skip to content

Commit 96d0d3b

Browse files
committed
Add missing per-node strategy to TA CRD
1 parent 61daef2 commit 96d0d3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apis/v1beta1/allocation_strategy.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ package v1beta1
1616

1717
type (
1818
// TargetAllocatorAllocationStrategy represent a strategy Target Allocator uses to distribute targets to each collector
19-
// +kubebuilder:validation:Enum=least-weighted;consistent-hashing
19+
// +kubebuilder:validation:Enum=least-weighted;consistent-hashing;per-node
2020
TargetAllocatorAllocationStrategy string
2121
// TargetAllocatorFilterStrategy represent a filtering strategy for targets before they are assigned to collectors
2222
// +kubebuilder:validation:Enum="";relabel-config
@@ -30,6 +30,9 @@ const (
3030
// TargetAllocatorAllocationStrategyConsistentHashing targets will be consistently added to collectors, which allows a high-availability setup.
3131
TargetAllocatorAllocationStrategyConsistentHashing TargetAllocatorAllocationStrategy = "consistent-hashing"
3232

33+
// TargetAllocatorAllocationStrategyConsistentHashingPerNode targets will be assigned to the collector on the node they reside on (use only with daemon set).
34+
OpenTelemetryTargetAllocatorAllocationStrategyPerNode TargetAllocatorAllocationStrategy = "per-node"
35+
3336
// TargetAllocatorFilterStrategyRelabelConfig targets will be consistently drops targets based on the relabel_config.
3437
TargetAllocatorFilterStrategyRelabelConfig TargetAllocatorFilterStrategy = "relabel-config"
3538
)

0 commit comments

Comments
 (0)