-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenTelemetryCollector v1beta1, nulls get dropped #3543
Comments
If this is not considered a bug, I would think that all examples and test data should then use For example:
In that case, this issue should be closed and PRs opened to fix config examples in other repos. |
@NickLarsenNZ this is documented in our upgrade guide here.
I believe our plan is to migrate the v1alpha1 examples once we drop support for that CR. As far as the collector examples go, it may be worth us reaching out to the collector group to update their examples to something more ubiquitously acceptable. |
I'll reach out to the collector folks for examples upgrades. It wouldn't hurt to do. |
Maybe we should reconsider this #3286 |
Component(s)
collector
What happened?
Description
The collector fails to start when migrating from
v1alpha1
tov1beta1
using the following procedure:apiVersion
toopentelemetry.io/v1beta1
.|
fromspec.config
, turning the value from a string to an object.Steps to Reproduce
Expected Result
The collector should start up, and its ConfigMap should show the receivers (and other things enabled without additional config)
Or, I'd expect the webhook to tell my the configuration is invalid.
Actual Result
The collector fails to start with: "no receiver configuration specified in config". The webhooks doesn't pick this up.
The generated ConfigMap ends up with an empty
receivers
section:Kubernetes Version
1.31.0
Operator version
0.114.1
Collector version
0.114.0 (otel/opentelemetry-collector-k8s:0.114.0)
Environment information
Environment
OS: Nixos
Log output
Additional context
It works if I change the
spec.config
to a string config, and usev1alpha
.It also works if I add
{}
so that thek8s_events
receiver doesn't default to null.The text was updated successfully, but these errors were encountered: