Open GabrielDyck opened 11 months ago
I've read the code and I've found that in https://github.com/open-telemetry/opentelemetry-operator/blob/main/pkg/sidecar/podmutator.go#L81 operator allows the pod creation even if there are errors.
GIven that It reads collectors from k8s, I think that , for my use case, 'm fine assuming that if my collector is present in the Kubernetes, it is enough to continue with my deployment.
On the other hand, I was wondering if this is something that we could work to catch error cases that can lead to missing metrics. Maybe adding new annotations or operator config to indicate what the operator should do in those cases.
Let me know if I can do something from my end.
Component(s)
operator, collector
Describe the issue you're reporting
Hello!
I am integrating OTel Collector in our platform and I am creating a new OpenTelemetryCollector in every new deployment given a configuration provided by our users.
My goal is to launch the deployment after creating the otel collector and checking that the collector is ready to inject the sidecar on it, because I don't want to continue the deployment process if an otc-container component is missing.
Question
I realize that if the configured "sidecar.opentelemetry.io/inject" collector doesn't exist, the pod starts without the sidecar. So I am curious about how and when the collector configuration is ready to inject sidecars in new pods.
Thank you in advance!
I've uploaded my configuration in the following section.
Configuration