Open
Description
Component(s)
processor/resourcedetection
What happened?
Description
The validate command fails if not connected to Kubernetes and resourcedetection contains detector k8snode.
Steps to Reproduce
Run validate with this processor in your config
resourcedetection/k8s:
detectors: ["k8snode"]
override: true
Expected Result
nil
Actual Result
2025/06/10 11:40:34 collector server run finished with error: failed to build pipelines: failed to create "resourcedetection/k8s" processor, in pipeline "metrics": failed creating detector type "k8snode": failed creating k8snode detector: failed to create K8s API client: unable to load k8s config, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
Collector version
0.126.0