Skip to content

Commit b74b110

Browse files
authored
[Target Allocator] Enable Deployment and Daemonset modes for Agent (#253)
* Changes error to warning
1 parent bfb6b3a commit b74b110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apis/v1alpha1/collector_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (c CollectorWebhook) validate(r *AmazonCloudWatchAgent) (admission.Warnings
171171

172172
// validate target allocation
173173
if r.Spec.TargetAllocator.Enabled && r.Spec.Mode != ModeStatefulSet {
174-
return warnings, fmt.Errorf("the OpenTelemetry Collector mode is set to %s, which does not support the target allocation deployment", r.Spec.Mode)
174+
warnings = append(warnings, fmt.Sprintf("The Amazon CloudWatch Agent mode is set to %s, we do not recommend enabling Target Allocator when not running as a StatefulSet", r.Spec.Mode))
175175
}
176176

177177
// validate Prometheus config for target allocation

0 commit comments

Comments
 (0)