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
When a podmonitor/svcmonitor CRD has an erraneous field for regex in the relabeling/metric relabeling fields, the crd creation succeeds since it can be a valid string but not a valid regex( ex- .*( ). This causes any subsequent valid CRDs being created from getting picked up.
Steps to Reproduce
Create a podmonitor/svc monitor CRD with invalid regex (ex - .*()
Expected Result
This only generates the config without actually validating the pod/service monitors selected. It should follow a similar approach to prometheus-operator's resource selector where all the monitors are looped through and validated and the invalid ones are rejected.
Actual Result
All CRDs fail to be applied when one crd is error prone
Component(s)
target allocator
What happened?
Description
When a podmonitor/svcmonitor CRD has an erraneous field for regex in the relabeling/metric relabeling fields, the crd creation succeeds since it can be a valid string but not a valid regex( ex- .*( ). This causes any subsequent valid CRDs being created from getting picked up.
Steps to Reproduce
Create a podmonitor/svc monitor CRD with invalid regex (ex - .*()
Expected Result
This only generates the config without actually validating the pod/service monitors selected. It should follow a similar approach to prometheus-operator's resource selector where all the monitors are looped through and validated and the invalid ones are rejected.
Actual Result
All CRDs fail to be applied when one crd is error prone
Kubernetes Version
1.25.11
Operator version
v0.85.0
Collector version
v0.85.0
Environment information
No response
Log output
{"level":"error","ts":"2023-11-04T20:33:52Z","logger":"setup","msg":"Unable to load configuration","error":"error parsing regexp: missing closing ):
^(?:.*()$
","stacktrace":"main.main.func13\n\t/app/main.go:228\ngithub.com/oklog/run.(*Group).Run.func1\n\t/go/pkg/mod/github.com/oklog/[email protected]/group.go:38"}Additional context
No response
The text was updated successfully, but these errors were encountered: