We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9db568c + b5e795f commit 7d4dc12Copy full SHA for 7d4dc12
cmd/otel-allocator/internal/allocation/allocator.go
@@ -115,7 +115,7 @@ func (a *allocator) SetFallbackStrategy(strategy Strategy) {
115
116
// getTargetWeight returns the numeric weight for a target.
117
// Resolution order: pod annotation meta label > default (1).
118
-func (a *allocator) getTargetWeight(tg *target.Item) int {
+func (_ *allocator) getTargetWeight(tg *target.Item) int {
119
// Check pod annotation (exposed as meta label by K8s SD)
120
if labelVal := tg.Labels.Get(config.WeightAnnotationMetaLabel); labelVal != "" {
121
if w, err := strconv.Atoi(labelVal); err == nil && w >= 1 && w <= 100 {
0 commit comments