File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
internal/manifests/targetallocator Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,11 @@ func ConfigMap(params Params) (*corev1.ConfigMap, error) {
90
90
} else {
91
91
taConfig ["allocation_strategy" ] = v1beta1 .TargetAllocatorAllocationStrategyConsistentHashing
92
92
}
93
+
94
+ if featuregate .EnableTargetAllocatorFallbackStrategy .IsEnabled () {
95
+ taConfig ["allocation_fallback_strategy" ] = v1beta1 .TargetAllocatorAllocationStrategyConsistentHashing
96
+ }
97
+
93
98
taConfig ["filter_strategy" ] = taSpec .FilterStrategy
94
99
95
100
if taSpec .PrometheusCR .Enabled {
Original file line number Diff line number Diff line change 67
67
featuregate .WithRegisterDescription ("enables mTLS between the target allocator and the collector" ),
68
68
featuregate .WithRegisterFromVersion ("v0.111.0" ),
69
69
)
70
+ // EnableTargetAllocatorFallbackStrategy is the feature gate that enables consistent-hashing as the fallback
71
+ // strategy for allocation strategies that might not assign all jobs (per-node).
72
+ EnableTargetAllocatorFallbackStrategy = featuregate .GlobalRegistry ().MustRegister (
73
+ "operator.targetallocator.mtls" ,
74
+ featuregate .StageAlpha ,
75
+ featuregate .WithRegisterDescription ("enables fallback allocation strategy for the target allocator" ),
76
+ featuregate .WithRegisterFromVersion ("v0.114.0" ),
77
+ )
70
78
// EnableConfigDefaulting is the feature gate that enables the operator to default the endpoint for known components.
71
79
EnableConfigDefaulting = featuregate .GlobalRegistry ().MustRegister (
72
80
"operator.collector.default.config" ,
You can’t perform that action at this time.
0 commit comments