You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: invalid configuration: no receiver configuration specified in config
2024/12/12 17:14:36 collector server run finished with error: invalid configuration: no receiver configuration specified in config
Stream closed EOF for default/local-kubernetes-events-collector-7bddd5d6bb-7mhjb (otc-container)
Additional context
It works if I change the spec.config to a string config, and use v1alpha.
It also works if I add {} so that the k8s_events receiver doesn't default to null.
The text was updated successfully, but these errors were encountered:
Empty maps, like debug: in the above configuration, should have an explicit value of {}.
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.
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: