Closed
Description
Component(s)
receiver/k8sobjects
What happened?
Description
Today, if you specify a list of CRDs to be watched, the collector won't start if any of them are missing and stay in CrashLoopBackOff.
Steps to Reproduce
Apply the following receiver and use it in a pipeline without having telemetries.telemetry.istio.io
installed on your cluster.
receivers:
k8sobjects:
objects:
- name: telemetries
mode: watch
group: telemetry.istio.io/v1alpha1
Expected Result
The collector should start, and the receiver should be able to watch all CRDs it has found.
Actual Result
Error: invalid configuration: receivers::k8sobjects: resource XY not found. Valid resources are: [ helmchartconfigs configmaps rolebindings etc. ...
Collector version
v0.115.0
Environment information
Environment
N/A
OpenTelemetry Collector configuration
receivers:
k8sobjects:
objects:
- name: telemetries
mode: watch
group: telemetry.istio.io/v1alpha1
Log output
Error: invalid configuration: receivers::k8sobjects: resource XY not found. Valid resources are: [helmchartconfigs configmaps rolebindings etc. ...
Additional context
No response